I downloaded some data as sqlite database (data.db) and I want to open this database in python and then convert it to pandas dataframe.
I still did it
import sqlite3 import pandas dat = sqlite3.connect('data.db')
But its throwing this error
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 980, in from_records coerce_float=coerce_float) File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 5353, in _to_arrays if not len(data): TypeError: object of type 'sqlite3.Connection' has no len()
How to convert sqlite database to pandas dataframe
python database pandas sqlite dataframe
Eka
source share