Skip to content

BUG: pd.show_versions: json.decoder.JSONDecodeError #39766

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 7 commits into from
Feb 22, 2021

Conversation

alexprincel
Copy link
Contributor

@alexprincel alexprincel commented Feb 12, 2021

@MarcoGorelli MarcoGorelli changed the title Alexdev BUG: pd.show_versions: json.decoder.JSONDecodeError Feb 12, 2021
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @alexprincel for the PR.

@simonjayhawkins simonjayhawkins added the Dependencies Required and optional dependencies label Feb 12, 2021
Copy link
Member

@lithomas1 lithomas1 left a comment

Choose a reason for hiding this comment

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

Can you add a note in the whatsnew?(doc/source/whatsnew/v1.3.0.rst, I think this should go under Other in the section bug fixes.)

@lithomas1 lithomas1 added the Bug label Feb 12, 2021
@lithomas1 lithomas1 added this to the 1.3 milestone Feb 12, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

pls also add a whatsnew note. bug fixes in I/O sectoin are ok

@pep8speaks
Copy link

pep8speaks commented Feb 14, 2021

Hello @alexprincel! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-02-22 18:00:28 UTC

@alexprincel
Copy link
Contributor Author

Not sure if this needs commenting (again, first-timer), but I believe I have implemented all requested changes and made testing more robust.

@lithomas1
Copy link
Member

@alexprincel Looking at the diff, it looks like a merge went wrong somewhere. Can you fix this up?

@alexprincel
Copy link
Contributor Author

@alexprincel Looking at the diff, it looks like a merge went wrong somewhere. Can you fix this up?

Sorry about that. What seems to be the problem? I will do my best to resolve it. My git skills are not yet up to par.

@lithomas1
Copy link
Member

lithomas1 commented Feb 18, 2021

@alexprincel If you click on Files changed, you can see that there are unrelated changes in the pandas/tests/io directory. (Which I suspect is the result of a bad merge) I'm not really an expert on git either, so maybe you can ask one of the other maintainers for help.(If necessary you can revert the changes manually). Apart from the unrelated changes, LGTM.

@alexprincel
Copy link
Contributor Author

@alexprincel If you click on Files changed, you can see that there are unrelated changes in the pandas/tests/io directory. (Which I suspect is the result of a bad merge) I'm not really an expert on git either, so maybe you can ask one of the other maintainers for help.(If necessary you can revert the changes manually). Apart from the unrelated changes, LGTM.

I saw this as well after. I have been reading on git this week and trying some things on test repos just to understand exactly what I need to do to correct this. If I can't figure it out I'll just start a new branch, put the modified files in that branch's working directory and commit that.

@MarcoGorelli
Copy link
Member

If you only need to revert a handful of files, I'd suggest

git remote -v  # check that `upstream` is pandas-dev/pandas and `origin` is alexprincel/pandas
git fetch upstream master
git checkout upstream/master -- pandas/tests/io
git commit -m 'revert unrelated changes'
git push origin alexdev

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Thanks @alexprincel for updating - I think this almost ready, just a couple of minor comments

@alexprincel
Copy link
Contributor Author

Thanks @alexprincel for updating - I think this almost ready, just a couple of minor comments

Will make them later today. Thanks for your comments, helps me improve.

@alexprincel
Copy link
Contributor Author

alexprincel commented Feb 22, 2021

I have addressed all comments. Thanks !

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Thanks @alexprincel - just one unused function to remove, other than that this looks good to me

Co-authored-by: Marco Gorelli <[email protected]>
@MarcoGorelli MarcoGorelli self-requested a review February 22, 2021 18:06
Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Pending green, this looks good to me

@simonjayhawkins any further comments, or good to merge?

@simonjayhawkins
Copy link
Member

LGTM

@MarcoGorelli
Copy link
Member

cool - merging then, as commit 02e6bc7 was green and the commit following that just changed a comment

Thank you @alexprincel !

@MarcoGorelli MarcoGorelli merged commit 80fb7c6 into pandas-dev:master Feb 22, 2021
@alexprincel
Copy link
Contributor Author

cool - merging then, as commit 02e6bc7 was green and the commit following that just changed a comment

Thank you @alexprincel !

Thank you for your patience on this! Hopefully I will be more efficient on my next PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dependencies Required and optional dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: pd.show_versions: json.decoder.JSONDecodeError
6 participants