Skip to content

Commit c7a7175

Browse files
committed
fix: use p instead of q
1 parent 1d7c1a7 commit c7a7175

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎tsfeatures/tsfeatures.py‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -845,12 +845,12 @@ def statistics(x: np.array, freq: int = 1) -> Dict[str, float]:
845845
'mean': Mean value.
846846
'variance': variance of the time series.
847847
'median': Median value.
848-
'q2point5': 2.5 Percentile.
849-
'q5': 5 percentile.
850-
'q25': 25 percentile.
851-
'q75': 75 percentile.
852-
'q95': 95 percentile.
853-
'q97point5': 97.5 percentile.
848+
'p2point5': 2.5 Percentile.
849+
'p5': 5 percentile.
850+
'p25': 25 percentile.
851+
'p75': 75 percentile.
852+
'p95': 95 percentile.
853+
'p97point5': 97.5 percentile.
854854
'max': Max value.
855855
'min': Min value.
856856
"""
@@ -859,12 +859,12 @@ def statistics(x: np.array, freq: int = 1) -> Dict[str, float]:
859859
mean=np.mean(x),
860860
variance=np.var(x, ddof=1),
861861
median=np.median(x),
862-
q2point5=np.quantile(x, q=0.025),
863-
q5=np.quantile(x, q=0.05),
864-
q25=np.quantile(x, q=0.25),
865-
q75=np.quantile(x, q=0.75),
866-
q95=np.quantile(x, q=0.95),
867-
q97point5=np.quantile(x, q=0.975),
862+
p2point5=np.quantile(x, q=0.025),
863+
p5=np.quantile(x, q=0.05),
864+
p25=np.quantile(x, q=0.25),
865+
p75=np.quantile(x, q=0.75),
866+
p95=np.quantile(x, q=0.95),
867+
p97point5=np.quantile(x, q=0.975),
868868
max=np.max(x),
869869
min=np.min(x),
870870
)

0 commit comments

Comments
 (0)