you could also try;
data = pd.read_csv('file1.csv', on_bad_lines='skip')
Do note that this will cause the offending lines to be skipped.
Related Posts:
- Writing a pandas DataFrame to CSV file
- Writing a pandas DataFrame to CSV file
- Pandas: ValueError: cannot convert float NaN to integer
- How to load a tsv file into a Pandas DataFrame?
- OSError: Initializing from file failed on csv in Pandas
- python csv2libsvm.py: AttributeError: ‘_csv.reader’ object has no attribute ‘next’
- How to add pandas data to an existing csv file?
- How to parse tsv file with python?
- Error in Reading a csv file in pandas[CParserError: Error tokenizing data. C error: Buffer overflow caught – possible malformed input file.]
- how to sort pandas dataframe from one column
- How to reset index in a pandas dataframe? [duplicate]
- IndexError: too many indices for array
- How to iterate over rows in a DataFrame in Pandas
- pandas read_json: “If using all scalar values, you must pass an index”
- The difference between comparison to np.nan and isnull()
- ImportError: No module named pandas
- ImportError: No module named pandas. Pandas installed pip
- How to groupby based on two columns in pandas?
- “Series objects are mutable and cannot be hashed” error
- TypeError: ‘Series’ objects are mutable, thus they cannot be hashed problemwith column
- How to replace NaN values by Zeroes in a column of a Pandas Dataframe?
- ValueError: Length of values does not match length of index | Pandas DataFrame.unique()
- ValueError : I/O operation on closed file
- DataFrame constructor not properly called! error
- Error”Can only compare identically-labeled Series objects” and sort_index
- Pandas group-by and sum
- How can I one hot encode in Python?
- Python Pandas – Missing required dependencies [‘numpy’] 1
- csv.Error: iterator should return strings, not bytes
- ‘DataFrame’ object has no attribute ‘sort’
- How to read a .xlsx file using the pandas Library in iPython?
- Get total of Pandas column
- Plot pie chart and table of pandas dataframe
- Type error: cannot convert the series to
- Python Error io.UnsupportedOperation: not readable
- TypeError: ‘DataFrame’ object is not callable
- Pandas ‘count(distinct)’ equivalent
- Change column type in pandas
- Dump a NumPy array into a csv file
- What does axis in pandas mean?
- Is there a way to include commas in CSV columns without breaking the formatting?
- AttributeError: Can only use .dt accessor with datetimelike values
- Combine two columns of text in pandas dataframe
- Python: pandas merge multiple dataframes
- How to count the NaN values in a column in pandas DataFrame
- xlrd.biffh.XLRDError: Excel xlsx file; not supported
- Pandas: change data type of Series to String
- Convert XML to CSV file
- TypeError: list indices must be integers or slices, not str
- Pandas – DataFrame object is not callable
- Selecting with complex criteria from pandas.DataFrame
- Python Pandas: Get index of rows which column matches certain value
- module ‘pandas’ has no attribute ‘rolling_mean’
- How do I combine two dataframes?
- Convert from CSV to array in Python
- Normalize columns of pandas data frame
- Converting strings to floats in a DataFrame
- Normalize columns of pandas data frame
- Python import csv to list
- How to add an empty column to a dataframe?
- Pandas join issue: columns overlap but no suffix specified
- Count unique values per groups with Pandas [duplicate]
- How to apply a function to two columns of Pandas dataframe
- Convert categorical data in pandas dataframe
- pandas create new column based on values from other columns / apply a function of multiple columns, row-wise
- ValueError: x and y must be the same size
- Loading a file with more than one line of JSON into Pandas
- ValueError: Expected object or value when reading json as pandas dataframe
- Insert a row to pandas dataframe
- How to save a Seaborn plot into a file
- Subtract two columns in dataframe
- How to check if a column exists in Pandas
- pandas DataFrame: replace nan values with average of columns
- Pandas error “Can only use .str accessor with string values”
- How to get row number in dataframe in Pandas?
- Python CSV error: line contains NULL byte
- Rename specific column(s) in pandas
- How to convert column with dtype as object to string in Pandas Dataframe
- Python CSV Error: sequence expected
- Coalesce values from 2 columns into a single column in a pandas dataframe
- Unknown format code ‘f’ for object of type ‘str’- Folium
- convert csv file to list of dictionaries
- Pandas: sum up multiple columns into one column without last column
- python pandas remove duplicate columns
- Convert Pandas Column to DateTime
- _csv.Error: field larger than field limit (131072)
- Python: Pandas pd.read_excel giving ImportError: Install xlrd >= 0.9.0 for Excel support
- Move column by name to front of table in pandas
- Pandas unstack problems: ValueError: Index contains duplicate entries, cannot reshape
- Python: Convert timedelta to int in a dataframe
- Must have equal len keys and value when setting with an iterable
- Pandas dataframe groupby plot
- Calculate weighted average using a pandas/dataframe
- ValueError: multiclass format is not supported
- How to convert .sav file into csv file
- Convert list of dictionaries to a pandas DataFrame
- Python Pandas : pivot table with aggfunc = count unique distinct
- AttributeError: ‘Series’ object has no attribute ‘split’ error in sending emails
- WordPress.com Stats stats_get_csv with custom field?
- CSV import stopped working when I upgraded to WP 3.5.2