if df.empty: print('DataFrame is empty!')
data
df.DataFarame(data) if data are empty ,dose not raise an exception
0 Comments