mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-07-27 11:25:14 +08:00
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:
+4
-5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user