I want to merge all cells in a Pandas dataframe as below, I have written codes below but it returns "TypeError: NAN/INF not supported in write_number() without \'nan_inf_to