Skip to content

Commit 68fa7c3

Browse files
committed
Update readme
1 parent 2051596 commit 68fa7c3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def crossover(
335335
first_column: str,
336336
second_column: str,
337337
result_column="crossover",
338-
data_points: int = None,
338+
number_of_data_points: int = None,
339339
strict: bool = True,
340340
) -> Union[PdDataFrame, PlDataFrame]:
341341
```
@@ -424,12 +424,12 @@ pl_df = crossover(
424424

425425
# If you want the function to calculate the crossovors in the function
426426
if is_crossover(
427-
pl_df, first_column="EMA_50", second_column="EMA_200", data_points=3
427+
pl_df, first_column="EMA_50", second_column="EMA_200", number_of_data_points=3
428428
):
429429
print("Crossover detected in Pandas DataFrame in the last 3 data points")
430430

431431
# If you want to use the result of a previous crossover calculation
432-
if is_crossover(pl_df, crossover_column="Crossover_EMA", data_points=3):
432+
if is_crossover(pl_df, crossover_column="Crossover_EMA", number_of_data_points=3):
433433
print("Crossover detected in Pandas DataFrame in the last 3 data points")
434434

435435
# Calculate EMA and crossover for Pandas DataFrame
@@ -444,12 +444,12 @@ pd_df = crossover(
444444

445445
# If you want the function to calculate the crossovors in the function
446446
if is_crossover(
447-
pd_df, first_column="EMA_50", second_column="EMA_200", data_points=3
447+
pd_df, first_column="EMA_50", second_column="EMA_200", number_of_data_points=3
448448
):
449449
print("Crossover detected in Pandas DataFrame in the last 3 data points")
450450

451451
# If you want to use the result of a previous crossover calculation
452-
if is_crossover(pd_df, crossover_column="Crossover_EMA", data_points=3):
452+
if is_crossover(pd_df, crossover_column="Crossover_EMA", number_of_data_points=3):
453453
print("Crossover detected in Pandas DataFrame in the last 3 data points")
454454
```
455455

@@ -463,7 +463,7 @@ def crossunder(
463463
first_column: str,
464464
second_column: str,
465465
result_column="crossunder",
466-
data_points: int = None,
466+
number_of_data_points: int = None,
467467
strict: bool = True,
468468
) -> Union[PdDataFrame, PlDataFrame]:
469469
```
@@ -552,12 +552,12 @@ pl_df = crossunder(
552552

553553
# If you want the function to calculate the crossunders in the function
554554
if is_crossunder(
555-
pl_df, first_column="EMA_50", second_column="EMA_200", data_points=3
555+
pl_df, first_column="EMA_50", second_column="EMA_200", number_of_data_points=3
556556
):
557557
print("Crossunder detected in Pandas DataFrame in the last 3 data points")
558558

559559
# If you want to use the result of a previous crossunders calculation
560-
if is_crossunder(pl_df, crossunder_column="Crossunder_EMA", data_points=3):
560+
if is_crossunder(pl_df, crossunder_column="Crossunder_EMA", number_of_data_points=3):
561561
print("Crossunder detected in Pandas DataFrame in the last 3 data points")
562562

563563
# Calculate EMA and crossunders for Pandas DataFrame
@@ -566,11 +566,11 @@ pd_df = ema(pd_df, source_column="Close", period=50, result_column="EMA_50")
566566

567567
# If you want the function to calculate the crossunders in the function
568568
if is_crossunder(
569-
pd_df, first_column="EMA_50", second_column="EMA_200", data_points=3
569+
pd_df, first_column="EMA_50", second_column="EMA_200", number_of_data_points=3
570570
):
571571
print("Crossunders detected in Pandas DataFrame in the last 3 data points")
572572

573573
# If you want to use the result of a previous crossover calculation
574-
if is_crossunder(pd_df, crossover_column="Crossunder_EMA", data_points=3):
574+
if is_crossunder(pd_df, crossover_column="Crossunder_EMA", number_of_data_points=3):
575575
print("Crossunder detected in Pandas DataFrame in the last 3 data points")
576576
```

0 commit comments

Comments
 (0)