dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
8.94k stars 1.86k forks source link

DataFrame.LoadCsv should support URLs #5905

Open pgovind opened 2 years ago

pgovind commented 2 years ago

Just logging an issue I encountered while using DataFrame. I wanted to read in the csv file living here: https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/01-01-2021.csv. However I first had to download the raw data, save it into a csv file and then read it into a DataFrame. I think there's room to make LoadCsv support URLs ending with .csv here to make the process cleaner.

tombohub commented 2 years ago

You can also load dataframe from csv string with DataFrame.LoadCsvFromString. Did you try? it worked for me