Skip to content

BUG: Raise ValueError for non-string columns in read_json orient='table' (GH19129) #61359

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

amoitra1
Copy link

  • Closes GH19129
  • Adds validation to ensure all column names are strings when using orient='table' in read_json
  • Raises a clear ValueError if invalid column names are found
  • Adds a new unit test to pandas/tests/io/json/test_json_table_schema.py to cover the invalid input case
  • Ran pytest and pre-commit hooks successfully

Looking forward to feedback. Thanks!

@amoitra1
Copy link
Author

pre-commit.ci autofix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant