Skip to content

ENH: change pd.read_json kwarg to rtype or return_type? #44881

@ammarasmro

Description

@ammarasmro

Is your feature request related to a problem?

Curious to know why pd.read_json has kwarg typ instead of rtype or return_type? Sorry if the answer is too simple but I couldn't find something that could explain it and typ might not be trivial to guess.

Describe the solution you'd like

few ways I guess (assuming there isn't a component that would break from this change)

  • Change variable to rtype
  • Change variable to return_type
  • Update documentation to reflect reason for choice of variable name

API breaking implications

[this should provide a description of how this feature will affect the API]

Describe alternatives you've considered

[this should provide a description of any alternative solutions or features you've considered]

Additional context

[add any other context, code examples, or references to existing implementations about the feature request here]

pd.read_json(typ='series')

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignIO JSONread_json, to_json, json_normalizeNeeds DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions