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

Big numbers getting truncated #6916

Open
lhemerly opened this issue Oct 15, 2024 · 0 comments
Open

Big numbers getting truncated #6916

lhemerly opened this issue Oct 15, 2024 · 0 comments
Labels
bug report Bug is reported by user, not yet confirmed by the core team

Comments

@lhemerly
Copy link

What's wrong?

When loading a csv file with big numbers the data on the table view where you select data types is correct, but the output data truncates the numbers. For example, the following number:
-22112248,96

Got converted (output only) to:
-2.211225e+07

Please note this is using european notation, that is "," as decimal separator.

Trying to reproduce the problem in Pandas I noted that when you print such number to your terminal you get "-2.211225e+07", but if you save it to a csv (using df.to_csv) the number ouputs correctly.

To correctly print the number on the terminal you need to include the following:
pd.options.display.float_format = "{:.2f}".format

How can we reproduce the problem?

I managed to reproduce it by importing a csv with this number:
-22112248,96

But it should work with similar numbers in size and format

What's your environment?

  • Operating system: Windows 11
  • Orange version: 3.37.0
  • How you installed Orange: Windows installer
@lhemerly lhemerly added the bug report Bug is reported by user, not yet confirmed by the core team label Oct 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug report Bug is reported by user, not yet confirmed by the core team
Projects
None yet
Development

No branches or pull requests

1 participant