About 720,000 results
Open links in new tab
  1. python - 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 stored in …

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

    May 21, 2019 · I have a dataframe in pandas which I would like to write to a CSV file. I am doing this using:

  3. UnicodeDecodeError when reading CSV file in Pandas

    You can also use one of several alias options like 'latin' or 'cp1252' (Windows) instead of 'ISO-8859-1' (see python docs, also for numerous other encodings you may encounter). See relevant Pandas …

  4. python - 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: MemoryError Traceback (most recent call last) <ipython-input-58-

  5. how to specify the datetime format in read_csv - Stack Overflow

    You can pass a function that parses the correct format to the date_parser kwarg of read_csv, but another option is to not parse the dates when reading, but afterwards with to_datetime (this functions …

  6. How to avoid pandas creating an index in a saved csv

    I am trying to save a csv to a folder after making some edits to the file. Every time I use pd.to_csv('C:/Path of file.csv') the csv file has a separate column of indexes. I want to avoid printin...

  7. python - How to add pandas data to an existing csv file ... - Stack ...

    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.

  8. Python's CSV module vs. Pandas - Stack Overflow

    Aug 19, 2023 · I am using Pandas to read CSV file data, but the CSV module is also there to manage the CSV file. What is the difference between these both? What are the cons of using Pandas over …

  9. Removing index column in pandas when reading a csv

    Dec 12, 2016 · Thanks! I decided to just import it a different way not using pandas. I have to perform some arithmetic on each of the columns and python wasn't liking have the index column attached. …

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

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