Python search corresponding data in multiple excel and paste to a new excel worksheet
问题 i have some excel files in a folder, there's already a worksheet call "service" in each file Notes_111.xlsx Notes_222.xlsx Notes_888.xlsx Workflow : I want to open each .xlsx file, for example, Notes_111.xlsx, then add a new worksheet, name as "code_city", then based on file's name 111 , extract only the code = 111 data from the master dataframe and paste to the new worksheet. then save. Sample master dataframe in another excel file code city 0 111 NY 1 111 CA 2 222 NJ 3 888 WE 4 888 TL i don