About 3,470,000 results
Open links in new tab
  1. Import CSV file as a Pandas DataFrame - Stack Overflow

    To read a CSV file as a pandas DataFrame, you'll need to use pd.read_csv, which has sep=',' as the default. But this isn't where the story ends; data exists in many different formats and is …

  2. Writing a pandas DataFrame to CSV file - Stack Overflow

    May 21, 2019 · Since pandas 1.0.0, you can pass a dict to compression that specifies compression method and file name inside the archive. The below code creates a zip file …

  3. UnicodeDecodeError when reading CSV file in Pandas

    See relevant Pandas documentation, python docs examples on csv files, and plenty of related questions here on SO. A good background resource is What every developer should know …

  4. How do I read a large csv file with pandas? - Stack Overflow

    Apr 26, 2017 · I am trying to read a large csv file (aprox. 6 GB) in pandas and i am getting a memory error:

  5. python - pandas to_csv output quoting issue - Stack Overflow

    pandas to_csv output quoting issue Asked 11 years, 11 months ago Modified 3 years, 3 months ago Viewed 212k times

  6. Python Pandas: How to read only first n rows of CSV files in?

    May 25, 2017 · If you do not want to use Pandas, you can use csv library and to limit row readed with interaction break. For example, I needed to read a list of files stored in csvs list to get the …

  7. python - Skip rows during csv import pandas - Stack Overflow

    I'm trying to import a .csv file using pandas.read_csv(), however, I don't want to import the 2nd row of the data file (the row with index = 1 for 0-indexing). I can't see how not to import it beca...

  8. pandas read csv with extra commas in column - Stack Overflow

    Sep 23, 2015 · I'm reading a basic csv file where the columns are separated by commas with these column names: userid, username, body However, the body column is a string which …

  9. How to add pandas data to an existing csv file? - Stack Overflow

    Jul 8, 2013 · I want to know if it is possible to use the pandas to_csv() function to add a dataframe to an existing csv file. The csv file has the same structure as the loaded data.

  10. python - datetime dtypes in pandas read_csv - Stack Overflow

    The pandas.read_csv() function has a keyword argument called parse_dates Using this you can on the fly convert strings, floats or integers into datetimes using the default date_parser …