Change df.ta.to_utc property to a method

Change `df.ta.to_utc` property to a method, because it's not idempotent. See #496
This commit is contained in:
GFHuang
2022-02-28 01:24:36 +08:00
committed by GitHub
parent 720bbcf019
commit 6ee1ea87f2
+4 -5
View File
@@ -366,11 +366,6 @@ class AnalysisIndicators(BasePandasObject):
else:
self._time_range = "years"
@property
def to_utc(self) -> None:
"""Sets the DataFrame index to UTC format"""
self._df = to_utc(self._df)
@property
def version(self) -> str:
"""Returns the version."""
@@ -516,6 +511,10 @@ class AnalysisIndicators(BasePandasObject):
return name, mode
# Public DataFrame Methods
def to_utc(self) -> None:
"""Sets the DataFrame index to UTC format"""
self._df = to_utc(self._df)
def constants(self, append: bool, values: list):
"""Constants