How do I download .csv dataset directly from Kaggle with Matlab code.
Hello, I found a dataset on Kaggle which I want to use for my Machine learning project. However, I’m required to download the dataset from the code itself. I tried this:
url1 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=example_submission.csv’;
url2 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=test_data.csv’;
url3 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=training_data.csv’;
example = websave(‘example_submission.csv’,url1);
test = websave(‘test_data.csv’,url2);
training = websave(‘training_data.csv’,url3);
data_example = readtable("example_submission.csv");
data_test = readtable("test_data.csv");
data_train = readtable("training_data.csv");
I was able to download them, however instead of downloading the .csv files, it is downloading an HTML page that contains the Kaggle website.Hello, I found a dataset on Kaggle which I want to use for my Machine learning project. However, I’m required to download the dataset from the code itself. I tried this:
url1 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=example_submission.csv’;
url2 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=test_data.csv’;
url3 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=training_data.csv’;
example = websave(‘example_submission.csv’,url1);
test = websave(‘test_data.csv’,url2);
training = websave(‘training_data.csv’,url3);
data_example = readtable("example_submission.csv");
data_test = readtable("test_data.csv");
data_train = readtable("training_data.csv");
I was able to download them, however instead of downloading the .csv files, it is downloading an HTML page that contains the Kaggle website. Hello, I found a dataset on Kaggle which I want to use for my Machine learning project. However, I’m required to download the dataset from the code itself. I tried this:
url1 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=example_submission.csv’;
url2 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=test_data.csv’;
url3 = ‘https://www.kaggle.com/competitions/mrs-spring-2023-battery-prediction-challenge/data?select=training_data.csv’;
example = websave(‘example_submission.csv’,url1);
test = websave(‘test_data.csv’,url2);
training = websave(‘training_data.csv’,url3);
data_example = readtable("example_submission.csv");
data_test = readtable("test_data.csv");
data_train = readtable("training_data.csv");
I was able to download them, however instead of downloading the .csv files, it is downloading an HTML page that contains the Kaggle website. import, database, help MATLAB Answers — New Questions