Skip to content

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

Closed
@zoziha

Description

@zoziha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaProposition of an idea and opening an issue to discuss it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions