I have to read multiple csv on which I have to apply the function describe() to have statistical summaries. So extracting some columns from csv in reading, applying the describe function, then I'd like to save this results into a new csv.
At this moment I'm using this basic commands below, but I do not understand how to save multiple results in one csv sheet.
Thank you for help
# importing pandas module
import pandas as pd
# read dataframe 1
data1 = pd.read_csv("data1.csv")
# read dataframe 2
data2 = pd.read_csv("data2.csv")
# calling describe method
desc1 = data1.describe()
desc2 = data2.describe()
# display
desc1
desc2