loadtxt - add usecols
option
#962
Labels
idea
Proposition of an idea and opening an issue to discuss it
usecols
option
#962
Motivation
Would it be possible to add an option to skip the loading of certain columns when using the
loadtxt
from subroutine fromstdlib_io
?The use case could be for loading tabular files with missing data. For example, loading a file with the table below would with
fmt="*"
would fail (unlessskiprows=4
). However, sometimes one would need just to load columns 1-3.Prior Art
The option would be similar to
usecols
option in numpyAdditional Information
Other options to treat missing values are possible -- e.g. supplying
NaN
to missing values or skipping rows or columns with missing data.The text was updated successfully, but these errors were encountered: