Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Read Csv File To List - Integers are read as Floats #19

Open
VanDenWoody opened this issue Apr 11, 2024 · 1 comment
Open

Read Csv File To List - Integers are read as Floats #19

VanDenWoody opened this issue Apr 11, 2024 · 1 comment

Comments

@VanDenWoody
Copy link

When reading a CSV file into RF, the Library implicitly converts INTs to FLOATs.

Example CSV data:

1,"Some","Data"
2,"More","Stuff"

RF:

Example test
    ${csv_data}=    Read Csv File To List    ${CSV File}    quoting=${2}

Result:

[info] ${csv_data} = [[1.0, 'Some', 'Data'], [2.0, 'More', 'Stuff']]
@VanDenWoody
Copy link
Author

VanDenWoody commented Apr 11, 2024

Or shall we call it a feature?
https://docs.python.org/3/library/csv.html

image

In that case I'd request to extend the documentation to clarify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant