摘要:
表图联动 同样网上巴拉的代码,改了一下能用 function eConsole(param) { var i = param.dataIndex;// 获取当前点击索引, //clickFunc(param.dataIndex);//执行点击效果 $("tbody tr").each(functio 阅读全文
摘要:
统计 一般情况下,运算时排除缺失值。 描述性统计: In [61]: df.mean() Out[61]: A -0.004474 B -0.383981 C -0.687758 D 5.000000 F 3.000000 dtype: float64 在另一个轴(即,行)上执行同样的操作: In 阅读全文
摘要:
不同维度对象运算时,要先对齐。 此外,Pandas 自动沿指定维度广播。 In [63]: s = pd.Series([1, 3, 5, np.nan, 6, 8], index=dates).shift(2) In [64]: s Out[64]: 2013-01-01 NaN 2013-01- 阅读全文
摘要:
Apply 函数 Apply 函数处理数据: In [66]: df.apply(np.cumsum) Out[66]: A B C D F 2013-01-01 0.000000 0.000000 -1.509059 5 NaN 2013-01-02 1.212112 -0.173215 -1.3 阅读全文