1

I want to practice machine learning so I went to kaggle to get any dataset.
But I don't know how to create numpy array from the csv file data. Kaggle dataset

If anyone can help

Adit Srivastava
  • 95
  • 1
  • 3
  • 10

1 Answers1

2

I would recommend using pandas DataFrames for these kind of tasks.

import pandas as pd
df = pd.read_csv('example.csv')

If you still wish to use an array, you can always:

df.values
Amit Wolfenfeld
  • 603
  • 7
  • 9