Top "Genfromtxt" questions

Numpy function to create arrays from tabular data.

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

I wonder if there is a direct way to import the contents of a CSV file into a record array, …

python numpy scipy genfromtxt
Reading data into numpy array from text file

I have a file with some metadata, and then some actual data consisting of 2 columns with headings. Do I need …

python arrays file-io numpy genfromtxt
Read in all csv files from a directory using Python

I hope this is not trivial but I am wondering the following: If I have a specific folder with n …

python csv for-loop numpy genfromtxt
Importing data and variable names from a text file in Python

I have a text file containing simulation data (60 columns, 100k rows): a b c 1 11 111 2 22 222 3 33 333 4 44 444 ... where in the first row are …

python variables dynamic variable-assignment genfromtxt
Using numpy.genfromtxt to read a csv file with strings containing commas

I am trying to read in a csv file with numpy.genfromtxt but some of the fields are strings which …

python numpy pandas genfromtxt
Python: Convert string (in scientific notation) to float

I'm trying to import a large .csv file containing text and numbers using genfromtxt in numpy. I'm only interested in …

string csv floating-point data-conversion genfromtxt
"Got 1 columns instead of ..." error in numpy

I'm working on the following code for performing Random Forest Classification on train and test sets; from sklearn.ensemble import …

python numpy genfromtxt
unable to read a tab delimited file into a numpy 2-D array

I am quite new to nympy and I am trying to read a tab(\t) delimited text file into an …

python-2.7 numpy genfromtxt
numpy.genfromtxt produces array of what looks like tuples, not a 2D array—why?

I'm running genfromtxt like below: date_conv = lambda x: str(x).replace(":", "/") time_conv = lambda x: str(x) a = np.…

python import numpy genfromtxt
Filling missing values using numpy.genfromtxt

Despite the advice from the previous questions: -9999 as missing value with numpy.genfromtxt() Using genfromtxt to import csv data …

python parsing numpy genfromtxt