python - Unmerge or fill in columns in pandas groupby dataframe -


i have data frame when printed in terminal or sent excel file looks below.

+-----------------------------------------------------------------------------------------------------------+ | 112      martin messenger bag                  mrkt-15-0004  accessories watch featured host       nan | | 262      fauna pouch kitten                    area-15-0050  accessories watch featured host       nan | | 263      key cable                             nati-15-0005  gadgets     featured                     nan | |                                                                          gadgets                      nan | |                                                                          summer staples               nan | | 110      winter remedy pack                    ecoa-15-0002  home goods  home goods                   nan | | 109      travel set                            ecoa-15-0001  beauty      featured                     nan | | 274      ideal notebook iphone             molla-15-0014 gadgets     watch featured host       nan | +-----------------------------------------------------------------------------------------------------------+ 

currently item 263 when sent excel merges cells. best way go filling in data 2 merged rows? case pandas.dataframe.reset_index?

edit: writing excel file xlsxwriter library

merge_cells option defaults true. try setting false.

df.to_excel(merge_cells=false) 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -