About 314,000 results
Open links in new tab
  1. How to read CSV file in Python? - Stack Overflow

    May 15, 2016 · As you can see, we can easily access different parts of the file by using our read_csv() function and creating a nested-list object. Finally, if you want to print to the entire …

  2. python - UnicodeDecodeError when reading CSV file in Pandas

    read_csv takes an encoding option to deal with files in different formats. I mostly use read_csv('file', encoding = "ISO-8859-1"), or alternatively encoding = "utf-8" for reading, and …

  3. How to import a csv-file into a data array? - Stack Overflow

    Oct 7, 2017 · @martineau, I am trying to import email list in CSV file into a python list. Array list length is 1 only ` len (data)=1` but I have over 100 emails in CSV file.

  4. python - Parse a single CSV string? - Stack Overflow

    Mar 6, 2016 · The csv library has readers for parsing CSV files which correctly handle the aforementioned special case, but I can't use those because I need to parse just a single string. …

  5. python - Reading a huge .csv file - Stack Overflow

    I'm currently trying to read data from .csv files in Python 2.7 with up to 1 million rows, and 200 columns (files range from 100mb to 1.6gb). I can do this (very slowly) for the files with under 30...

  6. python - how to specify the datetime format in read_csv - Stack …

    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 …

  7. python - How can I convert JSON to CSV? - Stack Overflow

    Dec 9, 2009 · I have a JSON file I want to convert to a CSV file. How can I do this with Python? I tried:

  8. Importing a CSV file into a sqlite3 database table using Python

    May 22, 2010 · I have a CSV file and I want to bulk-import this file into my sqlite3 database using Python. the command is ".import .....". but it seems that it cannot work like this.

  9. python - How to keep leading zeros in a column when reading …

    96 I am importing study data into a Pandas data frame using read_csv. My subject codes are 6 numbers coding, among others, the day of birth. For some of my subjects this results in a code …

  10. 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 …