Skip to content

use keyword only args where appropriate #27544

Closed
@jreback

Description

@jreback

we should use keyword only arguments for some of our functions that have large numbers of kwargs to make it harder to make mistakes in the calling conventions, a prime example is [read_csv](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html?highlight=read_csv#pandas.read_csv].

likely we want a signature

def read_csv(self, filepath_or_buffer, *, .......

IOW all args, except for the first should be kwargs.

We could further modify a fair number of functions, so will treat this as a tracking issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecateFunctionality to remove in pandasEnhancementRefactorInternal refactoring of code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions