Skip to content

Commit 66b7349

Browse files
committed
Update wma example
1 parent 97d103d commit 66b7349

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def wma(
5656
) -> Union[PandasDataFrame, PolarsDataFrame]
5757
```
5858

59-
Example:
59+
Example
6060

6161
```python
6262
from investing_algorithm_framework import CSVOHLCVMarketDataSource
@@ -71,11 +71,11 @@ pl_df = data_source.get_data()
7171
pd_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")
7575
pl_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")
7979
pd_df.tail(10)
8080
```
8181

0 commit comments

Comments
 (0)