Skip to content

Conversation

zubin3333
Copy link

When v is a list like object, numpy tries to create a 2D array if v isn't ragged despite the 'dtype=object'. Solution: add an empty list to make the array ragged and then remove.

  • closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

When v is a list like object, numpy tries to create a 2D array if v isn't ragged despite the 'dtype=object'. Solution: add an empty list to make the array ragged and then remove.
@pep8speaks
Copy link

pep8speaks commented Aug 22, 2022

Hello @zubin3333! 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 2022-08-22 15:55:31 UTC

@mroeschke mroeschke added the IO JSON read_json, to_json, json_normalize label Aug 22, 2022
@mroeschke
Copy link
Member

Thanks for the pull request, but I believe this issue is already close to solved by another user in this pull request #47708. Closing, but if that pull request does not make it through we can reopen this one. In the meantime, if you'd still like to contribute, we recommend addressing issues labeled good first issue and ensure no pull request is actively addressing the issue.

@mroeschke mroeschke closed this Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO JSON read_json, to_json, json_normalize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants