摘要:
函数定义 Rolling.apply(func, raw=False, engine=None, engine_kwargs=None, args=None, kwargs=None) Calculate the rolling custom aggregation function. 函数主要参数 阅读全文
2021年12月12日
摘要:
函数定义 DataFrame.rolling(window, min_periods=None, center=False, win_type=None, on=None, axis=0, closed=None, method='single') Provide rolling window ca 阅读全文
摘要:
函数定义 DataFrame.shift(periods=1, freq=None, axis=0, fill_value=NoDefault.no_default) Shift index by desired number of periods with an optional time fre 阅读全文
摘要:
函数定义 Series.to_frame(name=None) 将Series转换为DataFrame。 函数接口 参数 name:object, default None The passed name should substitute(代替) for the series name (if i 阅读全文
2021年12月10日
摘要:
点击查看代码 <div class="cnblogs_Highlighter"> <pre class="brush:python;gutter:true;"> print("hello world!") </pre> </div> print("hello world!") 阅读全文
2021年12月7日
摘要:
函数定义 DataFrame.droplevel(level, axis=0) Return Series/DataFrame with requested index / column level(s) removed. 函数参数 level:int, str, or list-like If a 阅读全文
2021年11月28日
摘要:
函数定义 filter() 函数用于过滤序列,过滤掉不符合条件的元素,返回由符合条件元素组成的迭代器对象。 该函数接收两个参数,第一个为函数,第二个为序列,序列的每个元素作为参数传递给函数进行判断,然后返回 True 或 False,最后将返回 True 的元素放到新列表中。 filter(func 阅读全文
2021年11月25日
摘要:
函数定义 torch.topk(input, k, dim=None, largest=True, sorted=True, *, out=None) 对于给定的输入 张量input,沿着给定的维度,返回k个最大元素。 一个命名元组(values,indices)将会被返回,这里的indices是返 阅读全文
2021年11月23日
摘要:
函数定义 torch.gather(input, dim, index, *, sparse_grad=False, out=None) → Tensor Gathers values along an axis specified by dim. 对于一个3-D的张量,输出按照以下公式被指定为: 阅读全文
摘要:
函数定义 Tensor.scatter_(dim, index, src, reduce=None) → Tensor 将张量src中的所有的值,按照index中指定的indices位置,写到自身张量self中。对于src中的每一个值,它的写入index位置被指定为: 等于src中的index,当d 阅读全文