Answers for "read row by row csv pandas"

14

how to get a row from a dataframe in python

df.iloc[[index]]
Posted by: Guest on May-15-2020
0

pandas how to start read csv at a certain row

import pandas as pd
# Select file 
infile = r'path/file'
# Use skiprows to choose starting point and nrows to choose number of rows
data = pd.read_csv(infile, skiprows = 50, nrows=10)
Posted by: Guest on July-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language