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

ValueError: 'Last Update' is not in list #27

Closed
rdorsch opened this issue Mar 24, 2020 · 2 comments
Closed

ValueError: 'Last Update' is not in list #27

rdorsch opened this issue Mar 24, 2020 · 2 comments

Comments

@rdorsch
Copy link

@rdorsch rdorsch commented Mar 24, 2020

I get since today (w/o updating covid-19-analysis)

... importing data: 95%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 59/62 [00:01<00:00, 25.02it/s]
Traceback (most recent call last):
File "./build/lib/covidify/data_prep.py", line 42, in
df = github.get()
File "/home/rd/tmp.nobackup/git/covid-19-analysis/build/lib/covidify/sources/github.py", line 140, in get
df = get_data(cleaned_sheets)
File "/home/rd/tmp.nobackup/git/covid-19-analysis/build/lib/covidify/sources/github.py", line 62, in get_data
header=0, parse_dates=['Last Update'])
File "/usr/lib/python3/dist-packages/pandas/io/parsers.py", line 678, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/lib/python3/dist-packages/pandas/io/parsers.py", line 440, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/lib/python3/dist-packages/pandas/io/parsers.py", line 787, in init
self._make_engine(self.engine)
File "/usr/lib/python3/dist-packages/pandas/io/parsers.py", line 1014, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/lib/python3/dist-packages/pandas/io/parsers.py", line 1758, in init
self._set_noconvert_columns()
File "/usr/lib/python3/dist-packages/pandas/io/parsers.py", line 1826, in _set_noconvert_columns
_set(val)
File "/usr/lib/python3/dist-packages/pandas/io/parsers.py", line 1816, in _set
x = names.index(x)
ValueError: 'Last Update' is not in list

@AaronWard

This comment has been minimized.

Copy link
Owner

@AaronWard AaronWard commented Mar 24, 2020

@AaronWard

This comment has been minimized.

Copy link
Owner

@AaronWard AaronWard commented Mar 24, 2020

Fixed

@AaronWard AaronWard closed this Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.