简体   繁体   中英

SQLite not displaying data in Pycharm

I am using Pycharm to code my python projects and I downloaded some data from quandl and passed it into a pandas DataFrame.

I wrote the below code to put this DataFrame into a SQLite database (It works)

engine = sqlite3.connect(country + ".db")
mydata = Quandl.get('TSE/8703', returns='pandas')
mydata.to_sql(name='TSE/8703', con=engine)

When I use SQLite Browser to view the items in the database, it works and it shows that the data is saved correctly.

My problem is that I cant view the database items from Pycharm directly. When I double click on the database in Pycharm, nothing pops up.. Am I configuring something wrongly? Or? (The database driver that I downloaded is Sqlite (Xerial) )

Any tips?

Seems like the problem was in the way I saved the table name . I had special characters in it and that was what caused the error.

To anyone who might have similar issues, just make sure you save your table name without special characters and it should work fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM