-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
BUG: Fix precision loss in read_json #59284
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9805875
Fix https://github.com/pandas-dev/pandas/issues/20608
fawazahmed0 fb63fd2
add test
fawazahmed0 aac3e59
Merge branch 'pandas-dev:main' into patch-1
fawazahmed0 ed7e5f9
add test
fawazahmed0 0f9c646
Delete pandas/tests/io/json/test_large_number.py
fawazahmed0 f1b04a5
add test
fawazahmed0 3725307
Merge branch 'main' into patch-1
rhshadrach 212c3b2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 59c6a8a
Merge branch 'pandas-dev:main' into main
fawazahmed0 95e3883
Merge branch 'main' into patch-1
fawazahmed0 410ee0e
Revert "add test"
fawazahmed0 c87f758
use a better variable name
fawazahmed0 a2f5366
Merge branch 'main' into patch-1
fawazahmed0 0f7f982
fix pre-commit.ci issues
fawazahmed0 b9fa714
use tm.assert_series_equal
fawazahmed0 61dc309
Merge branch 'main' into patch-1
fawazahmed0 4b159d3
Add whats new
fawazahmed0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from io import StringIO | ||
import pytest | ||
import pandas as pd | ||
|
||
def test_large_number(): | ||
fawazahmed0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
assert pd.read_json(StringIO('["9999999999999999"]'),orient="values",typ="series",convert_dates=False)[0] == 9999999999999999 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.