Skip to content
Advertisement

rename a dataframe automatically

I want to automatically rename my dataframe with 3 name ,I tried with this code but it shows me each time only the last name :

JavaScript

the result I want to achieve :

JavaScript

Advertisement

Answer

Can do it dynamically by multiplying the list to repeat it. Then slice by the length of the df.columns

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement