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

DEPR: Deprecate numpy argument in read_json #30636

Merged
merged 11 commits into from
Jan 9, 2020

Conversation

alimcmaster1
Copy link
Member

Co-authored-by: Luca Ionescu lucaionescu@users.noreply.github.com

@lucaionescu - i've merged master and pushed to here (I don't have the permissions to push to your branch), I will aim to fix up the tests. Or feel free to take it from here if you have time?

Opening up WIP PR to see what test failures need addressing.

I've also co-authored the commit.

Co-authored-by: Luca Ionescu <lucaionescu@users.noreply.github.com>
@alimcmaster1 alimcmaster1 changed the title DEPR: Deprecate numpy argument in read_json WIP: DEPR: Deprecate numpy argument in read_json Jan 3, 2020
@jreback jreback added Deprecate Functionality to remove in pandas IO JSON read_json, to_json, json_normalize labels Jan 3, 2020
pandas/tests/io/json/test_pandas.py Outdated Show resolved Hide resolved
# https://github.com/pandas-dev/pandas/issues/28512
expected = DataFrame([1, 2, 3])
with tm.assert_produces_warning(None):
with catch_warnings():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you catching warnings here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep unsure why this was in #28562. Now simplified

pandas/tests/io/json/test_pandas.py Outdated Show resolved Hide resolved
@alimcmaster1 alimcmaster1 marked this pull request as ready for review January 4, 2020 16:51
setup.cfg Outdated
@@ -66,6 +66,7 @@ xfail_strict = True
filterwarnings =
error:Sparse:FutureWarning
error:The SparseArray:FutureWarning
ignore: the 'numpy' keyword is deprecated:FutureWarning
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't do this, instead wrap the appropriate tests

@alimcmaster1 alimcmaster1 changed the title WIP: DEPR: Deprecate numpy argument in read_json DEPR: Deprecate numpy argument in read_json Jan 4, 2020
@alimcmaster1 alimcmaster1 reopened this Jan 5, 2020
@WillAyd
Copy link
Member

WillAyd commented Jan 6, 2020

Can you merge master?

@alimcmaster1
Copy link
Member Author

Can you merge master?

done!

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm @jreback

@alimcmaster1
Copy link
Member Author

friendly ping @jreback

@jreback jreback added this to the 1.0 milestone Jan 9, 2020
@jreback jreback merged commit 4fb264a into pandas-dev:master Jan 9, 2020
@jreback
Copy link
Contributor

jreback commented Jan 9, 2020

thanks @alimcmaster1 very nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas IO JSON read_json, to_json, json_normalize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: Deprecate numpy argument in read_json
3 participants