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

Correct filename and code to read Moffit supplementary #5

Open
matiasandina opened this issue Jan 13, 2022 · 0 comments
Open

Correct filename and code to read Moffit supplementary #5

matiasandina opened this issue Jan 13, 2022 · 0 comments

Comments

@matiasandina
Copy link

It would be nice to have the link to the table, at least as a comment on the line that will try to read the data.

https://www.science.org/doi/suppl/10.1126/science.aau5324/suppl_file/aau5324_moffitt_table-s1.xlsx

The filename in the code is CamelCase but in the source data it's all snake_case, so it creates an error.
Additionally, I couldn't read the file without installing a few things. See here for the type of error I was getting.

Basically, the engine had to be specified. The line that works for me is:

# root_ path was specified to build paths for the whole project
table_s1_df = pd.read_excel(f"{root_path}zenodo/MERFISH/raw_data/aau5324_moffitt_table-s1.xlsx", skiprows=[0,1], header=None, engine='openpyxl')
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