I have a csv file of 8gb and I am not able to run the code as it shows memory error.
file = \"./data.csv\" df = pd.read_csv(file, sep=\"/\", header=0, dtype=str
pandas read_csv has two argument options that you could use to do what you want to do:
nrows : to specify the number of rows you want to read skiprows : to specify the first row you want to read
Refer to documentation at: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html