Skip to content

SNOW-2171192: Add lowercase_columns = True to to_pandas() #2369

Open
@sfc-gh-amiribel

Description

@sfc-gh-amiribel

What is the current behavior?

my_df.to_pandas()

Output is a dataframe with columns all uppercases

What is the desired behavior?

Add a new lowercase_columns kwarg:

my_df.to_pandas(lowercase_columns=True)

Output is a dataframe with columns all lowercase!

This should of course be False by default to avoid any breaking change.

How would this improve snowflake-connector-python?

Just quality of life for Python users where upper case is not very common for Pandas columns.

We offer this argument in one of our internal teams project, and it has massive adoption. Probably a signal it'd be useful!

References and other background

No response

Metadata

Metadata

Labels

featurestatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions