fortran-lang/stdlib

Suggest that `loadtxt` supports reading CSV files of pure floating-point type, that is, add a argument `delimiter` to `savetxt` and `loadtxt` interfaces.

zoziha opened this issue · 0 comments

Motivation

Numpy's loadtxt supports reading CSV files with pure floating-point values, through data = np.loadtxt('example.csv', delimiter=','). In Fortran's default data reading rules, data separated by commas or spaces is very natural. The loadtxt in stdlib supporting the argument delimiter=',' will be a practical function. This is when I use the loadtxt in stdlib to read CSV files and find that only the first column of CSV data can be read.

In this case, savetxt also needs to support the delimiter argument.

Prior Art

Additional Information

No response