I need to save my result into excel file. I am executing these lines of code but the abc.xlsx is empty. why can anyone help me?
data1= data[data.columns[df.isnull().mean() < 0.8]] data1.to_excel('abc.xlsx') import matplotlib.pyplot as plt import openpyxl data = pd.read_csv('/kaggle/data/mydata.csv') data.head(3) data.dtypes data1= data[data.columns[df.isnull().mean() < 0.8]] data1.to_excel('abc.xlsx')
While executing data1.to_excel(‘abc.xlsx’) this .. the generated excel file is only 0KB why?
Anonymous Asked question May 14, 2021
Recent Comments