Skip to content

Commit

Permalink
[Mod] remove pandas version control, close vnpy#2699
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Oct 23, 2020
1 parent cd55274 commit 0ef01a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pymysql
psycopg2
mongoengine
numpy
pandas==0.24.2
pandas
matplotlib
seaborn
futu-api
Expand Down
16 changes: 8 additions & 8 deletions vnpy/trader/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ def wma(self, n: int, array: bool = False) -> Union[float, np.ndarray]:

def apo(
self,
fast_period: int,
slow_period: int,
fast_period: int,
slow_period: int,
matype: int = 0,
array: bool = False
) -> Union[float, np.ndarray]:
Expand Down Expand Up @@ -474,8 +474,8 @@ def mom(self, n: int, array: bool = False) -> Union[float, np.ndarray]:

def ppo(
self,
fast_period: int,
slow_period: int,
fast_period: int,
slow_period: int,
matype: int = 0,
array: bool = False
) -> Union[float, np.ndarray]:
Expand Down Expand Up @@ -661,7 +661,7 @@ def willr(self, n: int, array: bool = False) -> Union[float, np.ndarray]:
return result[-1]

def ultosc(
self,
self,
time_period1: int = 7,
time_period2: int = 14,
time_period3: int = 28,
Expand Down Expand Up @@ -806,9 +806,9 @@ def ad(self, array: bool = False) -> Union[float, np.ndarray]:
return result[-1]

def adosc(
self,
fast_period: int,
slow_period: int,
self,
fast_period: int,
slow_period: int,
array: bool = False
) -> Union[float, np.ndarray]:
"""
Expand Down

0 comments on commit 0ef01a6

Please sign in to comment.