Results 32 comments of 伍侃

不合适,理由如下 1.股票数据太大 2.需要架设服务器

> Thanks for sharing! I have another question while using resampling. resample.last() only keeps 1 row for each month, what if I have multiple rows for each month-end and I...

> > > Thanks for sharing! I have another question while using resampling. resample.last() only keeps 1 row for each month, what if I have multiple rows for each month-end...

How about some indicators not build in?

but forward fill price get the result is not my want

I find a way to push value from top to bottom. then use talib https://stackoverflow.com/questions/32062157/move-non-empty-cells-to-the-left-in-pandas-dataframe ```python def pushna(arr): idx = (~np.isnan(arr)).argsort(axis=0) col = np.arange(arr.shape[1])[None] return arr[idx, col], idx, col def...

EMA and RSI, have two mode: METASTOCK/Metastock, you can set by `ta.set_compatibility(1)` https://github.com/TA-Lib/ta-lib/blob/master/src/ta_func/ta_RSI.c#L110 https://github.com/TA-Lib/ta-lib/blob/master/src/ta_func/ta_EMA.c#L291 https://github.com/mrjbq7/ta-lib/issues/244

may be ```python pl.full_like(pl.col('A'), fill_value=None).scatter(pl.col('A').arg_not_null(), pl.col('A').drop_nulls()) or pl.scatter(pl.col('A').arg_not_null(), pl.col('A').drop_nulls()) ``` ```python import polars as pl df = pl.DataFrame( { "A": [5, None, 3, 2, 1], "B": [5, 3, None, 2,...