You can try yourself:
>>> import pandas as pd
>>> from StringIO import StringIO
>>> s = """1, 2
... 3, 4
... 5, 6"""
>>> pd.read_csv(StringIO(s), skiprows=[1], header=None)
0 1
0 1 2
1 5 6
>>> pd.read_csv(StringIO(s), skiprows=1, header=None)
0 1
0 3 4
1 5 6
More Related Contents:
- How do I read a large csv file with pandas?
- How to add pandas data to an existing csv file?
- How to read a file with a semi colon separator in pandas
- Pandas split column into multiple columns by comma
- How to read file with space separated values in pandas
- Convert commas decimal separators to dots within a Dataframe
- How to efficiently handle European decimal separators using the pandas read_csv function?
- Pandas: ValueError: cannot convert float NaN to integer
- pandas DataFrame output end of csv
- Use Multiple Character Delimiter in Python Pandas read_csv
- Get pandas.read_csv to read empty values as empty string instead of nan
- Pandas – Strip white space
- Filter string data based on its string length
- Why is pandas.to_datetime slow for non standard time format such as ‘2014/12/31’
- UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x96 in position 35: invalid start byte
- Loading multiple csv files of a folder into one dataframe
- Pandas read_csv dtype leading zeros
- pandas.read_csv from string or package data
- Pandas ParserError EOF character when reading multiple csv files to HDF5
- Pandas groupby to to_csv
- Is there a way to speed up handling large CSVs and dataframes in python?
- Calculate summary statistics of columns in dataframe
- Load CSV to Pandas MultiIndex DataFrame
- pandas read csv with extra commas in column
- double quoted elements in csv cant read with pandas
- how to specify the datetime format in read_csv
- UnicodeDecodeError when reading CSV file in Pandas
- How to upload a CSV file in FastAPI and convert it into a Pandas Dataframe?
- How to return a csv file/Pandas DataFrame in JSON format using FastAPI?
- pandas.read_csv FileNotFoundError: File b’\xe2\x80\xaa’ despite correct path