JuliaAcademy / DataScience

Data Science in Julia course for JuliaAcademy.com, taught by Huda Nassar
https://juliaacademy.com/p/julia-for-data-science
MIT License
488 stars 256 forks source link

01. Data ArgumentError: "programming_languages.csv" is not a valid file #17

Closed rleyvasal closed 3 years ago

rleyvasal commented 3 years ago

Notebook 01. Data shows the following error when running command C = CSV.read("programming_languages.csv");

ArgumentError: "programming_languages.csv" is not a valid file

Stacktrace: [1] CSV.Header(::String, ::Int64, ::Bool, ::Int64, ::Nothing, ::Int64, ::Bool, ::Nothing, ::Nothing, ::Bool, ::Nothing, ::Nothing, ::Array{String,1},

Running on: JuliaPro_v1.5.1-1 Windows 10 Pro 64-bit

matrixbot123 commented 3 years ago

1.In the above lines when you download the file there is a typo P = download("https://raw.githubusercontent.com/nassarhuda/easy_data/master/programming_languages.csv", "programminglanguages.csv") Change the "programminglanguages.csv" to "programming_languages.csv" If the problem is not resolved then try this this should resolve the error

  1. Instead of this C = CSV.read("programming_languages.csv") to C = CSV.read("programming_languages.csv",DataFrame)
kanak8278 commented 3 years ago

This may be happening because the wget command was unable to run. Therefore, _programminglanguage.csv was not able to be downloaded. You can use the file downloaded from the download(URL, filename) command. And rename the downloaded file to or edit the code to downloaded filename i.e. programminglanguages.csv.

matrixbot123 commented 3 years ago

If your wget is not working and you are on windows you can just go to the internet and find wget.exe and put it in your system32 file that worked fo me @rleyvasal

logankilpatrick commented 3 years ago

Updated the notebook. Thanks again all!