# -*-coding = utf-8 -*-
# @Time:2022/2/20/19:06
# @Author:seven
# @File:2.py
# @Software:PyCharm
import numpy as np
import pandas as pd
a=np.random.rand(2,3)
print(a)
print(np.sum(a)) # Sum up
print(np.mean(a)) # Calculating mean
print(a.var()) # Variance estimation
sum=np.sum(a)
mean=np.mean(a)
var=a.var()
list=pd.DataFrame({
"sum": [sum], "mean": [mean], "var": [var]})
list.to_csv("1.csv")# Save to csv file
qq=pd.read_csv("1.csv")# Read read file
print(qq)# Print