摘要:
import os import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy import stats import seaborn as sns sns.set(style="darkgrid") os.chdir(r'C:\Users\lzxan\PycharmProjects\un... 阅读全文
摘要:
import numpy as np import scipy as sp import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns mpl.style.use('seaborn-whitegrid'); def sta001(k,nyear,xd): ... 阅读全文
摘要:
#回归分析和基于模拟的分析 import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from numpy import random from pandas import Series,DataFrame from scipy import stats tips=... 阅读全文
摘要:
#变量之间的关系 import numpy as np import pandas as pd import matplotlib.pyplot as plt from numpy import random from pandas import Series,DataFrame from scipy import stats tips=pd.read_csv('tips.csv') pri... 阅读全文
摘要:
import numpy as np import pandas as pd from pandas import Series,DataFrame import matplotlib.pyplot as plt tips=pd.read_csv('tips.csv') print(tips.describe()) ''' total_bill tip ... 阅读全文
摘要:
import numpy as np import pandas as pd from pandas import Series,DataFrame s=Series([1,2,3],index=['a','b','c']) print(s) ''' a 1 b 2 c 3 dtype: int64 ''' print(np.max(s))#可以进行np运算 s.name=... 阅读全文