JuliaHEP / JuliaHEP-2023

Materials for the JuliaHEP 2023 Workshop
https://juliahep.github.io/JuliaHEP-2023/
Creative Commons Attribution 4.0 International
4 stars 4 forks source link

Path of CSV file used for DataFrames tutorial #30

Closed amanmdesai closed 10 months ago

amanmdesai commented 10 months ago

It would be nice to mention the explicitly the path of the CSV file and also give a link to it in the section: Loading Data from CSV;

CSV file: atlas-higgs-challenge-2014-v2-reduced.csv

Moelf commented 10 months ago

higgs_ml = CSV.read(joinpath("assets", "atlas-higgs-challenge-2014-v2-reduced.csv"), DataFrame)

yeah, this line could have used @__DIR__ macro to make it always use relative path

amanmdesai commented 10 months ago

Yeah that would be useful @Moelf Thanks.

I was wondering if it is also possible to download this csv file "independently" from github via Julia without cloning the entire repository?

Moelf commented 10 months ago

yeah, you can use download() with the url here: https://github.com/JuliaHEP/JuliaHEP-2023/blob/631385cfd0daa0918b81905767f3a37a02fbf160/julia-intro/docs/exercises/dataframes.md#load-and-clean-up-a-dataframe

amanmdesai commented 10 months ago

I see. It might be useful to also mention this in the DataFrame introduction lesson: https://juliahep.github.io/JuliaHEP-2023/julia-intro-dataframes.html

graeme-a-stewart commented 10 months ago

Hi @amanmdesai - thanks for pointing this out, we will improve that

amanmdesai commented 10 months ago

Thanks @graeme-a-stewart @Moelf