Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3.OperationalError: no such table: cu.data.2.Summaries #70

Closed
killianmcshane opened this issue Feb 18, 2023 · 3 comments
Closed

Comments

@killianmcshane
Copy link

killianmcshane commented Feb 18, 2023

I'm getting this error with the following code:

import cpi

cpi.update()

dataframe = cpi.series.get(seasonally_adjusted=False).to_dataframe()

print(dataframe)

This was working yesterday, any ideas?

@palewire
Copy link
Owner

palewire commented Feb 18, 2023 via email

@palewire
Copy link
Owner

This code just worked for me today. Are you still having this bug?

>>> import cpi
>>> 
>>> cpi.update()
>>> 
>>> dataframe = cpi.series.get(seasonally_adjusted=False).to_dataframe()
>>> 
>>> print(dataframe)
      year        date  value    series_id  ... period_abbreviation     period_name  period_month period_type
0     1997  1997-01-01  160.5  CUUR0000SA0  ...               AN AV  Annual Average             1      annual
1     1998  1998-01-01  163.0  CUUR0000SA0  ...               AN AV  Annual Average             1      annual
2     1999  1999-01-01  166.6  CUUR0000SA0  ...               AN AV  Annual Average             1      annual
3     2000  2000-01-01  172.2  CUUR0000SA0  ...               AN AV  Annual Average             1      annual
4     2001  2001-01-01  177.1  CUUR0000SA0  ...               AN AV  Annual Average             1      annual
...    ...         ...    ...          ...  ...                 ...             ...           ...         ...
1427  1996  1996-08-01  157.3  CUUR0000SA0  ...                 AUG          August             8     monthly
1428  1996  1996-09-01  157.8  CUUR0000SA0  ...                 SEP       September             9     monthly
1429  1996  1996-10-01  158.3  CUUR0000SA0  ...                 OCT         October            10     monthly
1430  1996  1996-11-01  158.6  CUUR0000SA0  ...                 NOV        November            11     monthly
1431  1996  1996-12-01  158.6  CUUR0000SA0  ...                 DEC        December            12     monthly

[1432 rows x 22 columns]

@palewire
Copy link
Owner

I've attempted to patch this bug, and better test for its future recurrence. Please upgrade to version 1.0.18 and try again. Assuming it's fixed, I'll close this ticket. If you still have the problem, please speak up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants