我使用sqliteBrowser来检查我正在使用的日期集中的表是否存在,但是在尝试查询表时,我仍然收到此错误。有什么想法吗?
import pandas as pd
import graphlab.aggregate as agg
import graphlab as gl
import numpy as np
import sqlite3
from scipy.sparse import csr_matrix
import matplotlib.pyplot as plt
%matplotlib inline
pd.set_option('display.float_format', lambda x: '%.3f' % x)
MusicData = sqlite3.connect("msd.sqlite3")
plays_df = gl.SFrame.from_sql(MusicData, "SELECT * FROM song")
错误:
> > --------------------------------------------------------------------------- OperationalError Traceback (most recent call
> last) <ipython-input-15-d79ed901d17b> in <module>()
> 3
> 4
> ----> 5 plays_df = gl.SFrame.from_sql(MusicData, "SELECT * FROM song")
> 6
> 7
>
> D:\anaconda\envs\gl-env\lib\site-packages\graphlab\data_structures\sframe.pyc
> in from_sql(cls, conn, sql_statement, params, type_inference_rows,
> dbapi_module, column_type_hints, cursor_arraysize) 2259
> if hasattr(conn, 'rollback'): 2260 conn.rollback()
> -> 2261 raise e 2262 2263 c.arraysize = cursor_arraysize
>
> OperationalError: no such table: song