[New post] Python code snippet – pandas How to start read csv at a certain row?
Subash Chandran posted: "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) "
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)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.