import pandas as pd workbook_name = "example.xlsx" df = pd.read_excel(workbook_name) # Rename all worksheets' columns for worksheet_name in df.sheet_names: df.rename(columns=lambda x: x + 'renamed', inplace=True, sheet_name=worksheet_name) # Delete all worksheets second row for worksheet
Write a piece of python code, use the pandas library, use the rename method to batch rename the column names of all worksheets in the workbook and delete the second row of all worksheets in batches...
Guess you like
Origin blog.csdn.net/weixin_35756690/article/details/129491545
Recommended
Ranking