About 478,000 results
Open links in new tab
  1. Import CSV file into Python - Stack Overflow

    I tried several times to import CSV file into python 2.7.15 but it fail. Please suggest how to import CSV in Python. Thank you

  2. python - Import CSV file as a Pandas DataFrame - Stack Overflow

    36 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 …

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

    Oct 7, 2017 · I have a line of code in a script that imports data from a text file with lots of spaces between values into an array for use later. textfile = open ('file.txt') data = [] for line in textfile:

  4. python - Import multiple CSV files into pandas and concatenate into …

    I would like to read several CSV files from a directory into pandas and concatenate them into one big DataFrame. I have not been able to figure it out though. Here is what I have so far: import glob

  5. Python import csv to list - Stack Overflow

    Python import csv to list [duplicate] Asked 11 years, 5 months ago Modified 3 years, 7 months ago Viewed 915k times

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

    May 22, 2010 · Explanation From the command line, the command you're looking for is sqlite3 my.db -cmd ".mode csv" ".import file.csv table". subprocess.run() runs a command line process. The …

  7. python - How do I read and write CSV files? - Stack Overflow

    Related How do I write data into csv format as string (not file)? How can I use io.StringIO () with the csv module?: This is interesting if you want to serve a CSV on-the-fly with Flask, without actually storing …

  8. How do I read CSV data into a record array in NumPy?

    Aug 19, 2010 · 580 Is there a direct way to import the contents of a CSV file into a record array, just like how R's read.table(), read.delim(), and read.csv() import data into R dataframes? Or should I use …

  9. Importing csv from a subdirectory in Python - Stack Overflow

    Python path and import are only for "linking" other python code into your system. Other files used as resources by your system are accessed by specifying the full path of the file:

  10. How to skip the headers when processing a csv file using Python ...

    336 I am using below referred code to edit a csv using Python. Functions called in the code form upper part of the code. Problem: I want the below referred code to start editing the csv from 2nd row, I want …