How to rename columns for pandas dataframe

rename a pandas dataframe with names from ‘0’ to ‘100’:

pd_data_frame.columns = [str(_) for _ in range(99)]

Be the first to comment

Leave a Reply

Your email address will not be published.


*