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

Chapter 01 - Data.ipynb error accessing XLSX.DataTable (G) #49

Open
PRCervera opened this issue Mar 9, 2023 · 2 comments
Open

Chapter 01 - Data.ipynb error accessing XLSX.DataTable (G) #49

PRCervera opened this issue Mar 9, 2023 · 2 comments

Comments

@PRCervera
Copy link

Error while executing G[1]

MethodError: no method matching getindex(::XLSX.DataTable, ::Int64)

Stacktrace:
[1] top-level scope
@ In[42]:1
or accesing G in with all instructions

Help needed !!!

Thank you !!!

@cr00k
Copy link

cr00k commented Apr 30, 2023

The output of XLSX.readtable() is no longer a tuple but a class. According to XLSX.jl docs ([https://felipenoris.github.io/XLSX.jl/stable/api/#XLSX.readtable]) one should use this function to create DataFrame with DataFrame.jl, which makes much more sense.

For example:
G = DataFrame(XLSX.readtable("data/zillow_data_download_april2020.xlsx","Sale_counts_city"))

Hope it helps.

@PRCervera
Copy link
Author

PRCervera commented May 1, 2023 via email

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