question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Warning: Coercing int64 to double"

See original GitHub issue

This may not be so much an issue as a question: Why does feather coerce int64 to double upon read_feather()? Why not convert it to integer?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
wesmcommented, Sep 23, 2016

We should have the R coerce to double only when there are values outside the representable range. Because pandas defaults to int64 even for small integers this would be a better default behavior

1reaction
hadleycommented, Aug 3, 2016

Because it would lose more information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert integer columns to double - Stack Overflow
use as.DATATYPE(column) as.double(Gaze_T$Distance). This converts the column Distance in Gaze_T to double.
Read more >
Getting rid of the int64 to double warning - NI Community
Hello all, Is there some kind of #pragma to get rid of the "Warning: Truncation from __int64 to double" message ?
Read more >
Type conversions and type safety | Microsoft Learn
Narrowing conversions (coercion)​​ The compiler performs narrowing conversions implicitly, but it warns you about potential data loss. Take these ...
Read more >
pandas.to_numeric — pandas 1.5.2 documentation
pandas.to_numeric# ... Convert argument to a numeric type. The default return dtype is float64 or int64 depending on the data supplied. Use the...
Read more >
Convert Data to Appropriate Type - R
string indicating how to convert numbers whose conversion to double ... a warning about accuracy loss is signalled and the conversion happens as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found