简体   繁体   中英

How to rename a dataframe in python

Say i have a variable x= customer.

Now I want to rename a dataframe named db1 by the name stored in variable x.

The rename function is useful only to change column names, but I want to change the name of the dataframe. I am using python 3.0

Say i have a variable x= customer.

Now I want to rename a dataframe named db1 by the name stored in variable x.

The rename function is useful only to change column names, but I want to change the name of the dataframe. I am using python 3.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM