Skip to content

Commit 980acd6

Browse files
committed
Change download instrunctions in README.md
1 parent dde82a0 commit 980acd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ pd_df = download(
406406
storage_path="./data"
407407
)
408408

409+
pl_df = data_source.get_data()
410+
pd_df = data_source.get_data(pandas=True)
411+
409412
# Calculate Williams%R for Polars DataFrame
410413
pl_df = willr(pl_df, result_column="WILLR")
411414
pl_df.show(10)
@@ -581,7 +584,6 @@ pd_df = download(
581584
storage_path="./data"
582585
)
583586

584-
585587
# Calculate EMA and crossover for Polars DataFrame
586588
pl_df = ema(pl_df, source_column="Close", period=200, result_column="EMA_200")
587589
pl_df = ema(pl_df, source_column="Close", period=50, result_column="EMA_50")
@@ -771,7 +773,6 @@ if is_crossunder(pd_df, crossover_column="Crossunder_EMA", number_of_data_points
771773
The is_downtrend function is used to determine if a downtrend occurred in the last N data points. It returns a boolean value indicating if a downtrend occurred in the last N data points. The function can be used to check for downtrends in a DataFrame that was previously calculated using the crossover function.
772774

773775
```python
774-
775776
def is_down_trend(
776777
data: Union[PdDataFrame, PlDataFrame],
777778
use_death_cross: bool = True,

0 commit comments

Comments
 (0)