摘要:
import pandas as pd d1 = [[3,"negative",2],[4,"negative",6],[11,"positive",0],[12,"positive",2], [14,"positive",2]] df1 = pd.DataFrame(d1, columns=["x 阅读全文
摘要:
参考:https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.shape.html import pandas as pd d1 = [[3,"negative",2],[4,"negative",6], 阅读全文
摘要:
参考:https://numpy.org/doc/stable/reference/generated/numpy.arange.html 语法格式 numpy.arange([start, ]stop, [step, ]dtype=None, *, like=None) 代码示例 >>> impo 阅读全文
摘要:
pandas.DataFrame.sample-从DataFrame或Series对象中随机取样 DataFrame.sample(n=None, frac=None, replace=False, weights=None, random_state=None, axis=None, ignore 阅读全文
摘要:
语法格式 pandas.concat(objs, *, axis=0, join='outer', ignore_index=False, keys=None, levels=None, names=None, verify_integrity=False, sort=False, copy=Tru 阅读全文