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

Bug in mimic_direct_extract.py: 'Series' object has no attribute 'columns' on line 973 #47

Open
amakelov opened this issue Jan 14, 2021 · 0 comments

Comments

@amakelov
Copy link

Running

python3 mimic_direct_extract.py 

fails with the following traceback:

Traceback (most recent call last):
  File "mimic_direct_extract.py", line 973, in <module>
    if N is not None: print("Notes", N.shape, N.index.names, N.columns.names)
  File "/afs/csail.mit.edu/u/a/amakelov/.conda/envs/mimic_data_extraction/lib/python3.6/site-packages/pandas/core/generic.py", line 5063, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'Series' object has no attribute 'columns'

I believe this is not due to something wrong with setting up the database or the materialized views. Rather, it seems that something went wrong with the internal logic of the script (seems like the script expects N to be a dataframe?).

@amakelov amakelov changed the title Problem running mimic_direct_extract.py Bug in mimic_direct_extract.py: 'Series' object has no attribute 'columns' on line 973 Jan 14, 2021
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

1 participant