Skip to content

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

Open
@PRCervera

Description

@PRCervera

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 !!!

Activity

cr00k

cr00k commented on Apr 30, 2023

@cr00k

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

PRCervera commented on May 1, 2023

@PRCervera
Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Chapter 01 - Data.ipynb error accessing XLSX.DataTable (G) · Issue #49 · JuliaAcademy/DataScience