File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def wma(
5656) -> Union[PandasDataFrame, PolarsDataFrame]
5757```
5858
59- Example:
59+ Example
6060
6161```python
6262from investing_algorithm_framework import CSVOHLCVMarketDataSource
@@ -71,11 +71,11 @@ pl_df = data_source.get_data()
7171pd_df = data_source.get_data(pandas = True )
7272
7373# Calculate SMA for Polars DataFrame
74- pl_df = wma(pl_df, source_column = " Close" , period = 200 , result_column = " SMA_200 " )
74+ pl_df = wma(pl_df, source_column = " Close" , period = 200 , result_column = " WMA_200 " )
7575pl_df.show(10 )
7676
7777# Calculate SMA for Pandas DataFrame
78- pd_df = wma(pd_df, source_column = " Close" , period = 200 , result_column = " SMA_200 " )
78+ pd_df = wma(pd_df, source_column = " Close" , period = 200 , result_column = " WMA_200 " )
7979pd_df.tail(10 )
8080```
8181
You can’t perform that action at this time.
0 commit comments