From 380f5c37ddc0e44f6347b04e46dba2b9c7ab6367 Mon Sep 17 00:00:00 2001 From: zengbin93 Date: Sat, 21 Dec 2024 19:03:55 +0800 Subject: [PATCH] 0.9.62 remove pandas_ta --- czsc/utils/ta.py | 2 +- requirements.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/czsc/utils/ta.py b/czsc/utils/ta.py index e95637fe8..72d4e9b43 100644 --- a/czsc/utils/ta.py +++ b/czsc/utils/ta.py @@ -11,7 +11,6 @@ """ import numpy as np import pandas as pd -import pandas_ta def SMA(close: np.array, timeperiod=5): @@ -526,6 +525,7 @@ def CHOP(high, low, close, **kwargs): :return: pd.Series, New feature generated. """ + import pandas_ta return pandas_ta.chop(high=high, low=low, close=close, **kwargs) diff --git a/requirements.txt b/requirements.txt index dd4187d28..671ba3eb9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,6 +30,5 @@ pytz flask scipy requests_toolbelt -pandas-ta networkx rs_czsc>=0.1.2 \ No newline at end of file