There is an importdata function on matlab that imports data from ASCII files and puts them in a structure with two variables: textdata and data. It automatically determines the data format (string, float, etc.), Headers and separator. This function comes in handy to me, so I'm looking if there is something equivalent in python packages like numpy and scipy. I use numpy.loadtxt, but sometimes I have to use skiprows, delimiter, usecols and dtype at the same time. Does anyone know a function that identifies it in a simpler way?
source
share