Best way to import CSV data in a python tensor for machine learning?
I want to import a csv data file in python in order to create a neural network down the road (with pytorch). The file has 4 columns and around 1000 rows with first row as titles. Which is the best way to do this?

Just use pandas.
In particular what you need is the read_csv function.
import pandas as pd

...

dataframe = pd.read_csv(&quot;/location/file.csv&quot;)

Check out the pandas references for more details.
