Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
zoziha opened this issue Mar 8, 2025 · 0 comments · May be fixed by #958
Labels
idea Proposition of an idea and opening an issue to discuss it

Comments

@zoziha
Copy link
Contributor

zoziha commented Mar 8, 2025

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

@zoziha zoziha added the idea Proposition of an idea and opening an issue to discuss it label Mar 8, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
idea Proposition of an idea and opening an issue to discuss it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant