Skip to content

valid parameters check while reading data #22189

Closed
@shantanuo

Description

@shantanuo

Pandas seems to ignore the extra (invalid) parameters. For e.g.

Code Sample, a copy-pastable example if possible

import pandas as pd
df=pd.read_excel('myfile.xlsx', some_dummy_param=True)

Note that some_dummy_param does not throw an error.

Problem description

Is there any way to make sure only valid parameters are passed to read_excel method?

Expected Output

Since there is no such parameter called "some_dummy_param", I should get an error:

TypeError: init() got an unexpected keyword argument 'some_dummy_param'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions