ENH var and stdev ddof addition MAINT refactoring

This commit is contained in:
Kevin Johnson
2020-07-25 11:51:21 -07:00
parent b16cb4e3bd
commit e643a9847d
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ from pandas_ta.volatility import *
from pandas_ta.volume import *
from pandas_ta.utils import *
version = ".".join(("0", "1", "77b"))
version = ".".join(("0", "1", "78b"))
# Dictionary of files for each category, used in df.ta.strategy()
Category = {name: category_files(name) for name in categories}
+1 -1
View File
@@ -20,7 +20,7 @@ def entropy(close, length=None, base=None, offset=None, **kwargs):
# Name & Category
entropy.name = f"ENTP_{length}"
entropy.category = 'statistics'
entropy.category = "statistics"
return entropy
+1 -1
View File
@@ -18,7 +18,7 @@ def kurtosis(close, length=None, offset=None, **kwargs):
# Name & Category
kurtosis.name = f"KURT_{length}"
kurtosis.category = 'statistics'
kurtosis.category = "statistics"
return kurtosis
+1 -1
View File
@@ -23,7 +23,7 @@ def mad(close, length=None, offset=None, **kwargs):
# Name & Category
mad.name = f"MAD_{length}"
mad.category = 'statistics'
mad.category = "statistics"
return mad
+1 -1
View File
@@ -18,7 +18,7 @@ def median(close, length=None, offset=None, **kwargs):
# Name & Category
median.name = f"MEDIAN_{length}"
median.category = 'statistics'
median.category = "statistics"
return median
+1 -1
View File
@@ -19,7 +19,7 @@ def quantile(close, length=None, q=None, offset=None, **kwargs):
# Name & Category
quantile.name = f"QTL_{length}_{q}"
quantile.category = 'statistics'
quantile.category = "statistics"
return quantile
+1 -1
View File
@@ -24,7 +24,7 @@ def skew(close, length=None, offset=None, **kwargs):
# Name & Category
skew.name = f"SKEW_{length}"
skew.category = 'statistics'
skew.category = "statistics"
return skew
+1 -1
View File
@@ -20,7 +20,7 @@ def stdev(close, length=None, ddof=1, offset=None, **kwargs):
# Name & Category
stdev.name = f"STDEV_{length}"
stdev.category = 'statistics'
stdev.category = "statistics"
return stdev
+1 -1
View File
@@ -20,7 +20,7 @@ def variance(close, length=None, ddof=1, offset=None, **kwargs):
# Name & Category
variance.name = f"VAR_{length}"
variance.category = 'statistics'
variance.category = "statistics"
return variance
+1 -1
View File
@@ -22,7 +22,7 @@ def zscore(close, length=None, std=None, offset=None, **kwargs):
# Name & Category
zscore.name = f"Z_{length}"
zscore.category = 'statistics'
zscore.category = "statistics"
return zscore