1. 随机抽样
import pandas as pd
DataFrame.sample(n=None, frac=None, replace=False, weights=None, random_state=None, axis=None)
# n: 抽取的行数。
# frac: 抽取的比列。
# replace抽样后的数据是否代替原DataFrame()
2. 不同dataframe中的数据,根据日期合并
在这里插入代码片
1. 随机抽样
import pandas as pd
DataFrame.sample(n=None, frac=None, replace=False, weights=None, random_state=None, axis=None)
# n: 抽取的行数。
# frac: 抽取的比列。
# replace抽样后的数据是否代替原DataFrame()
2. 不同dataframe中的数据,根据日期合并
在这里插入代码片