mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Docstrings are evaluated, while comments are not
This commit is contained in:
parent
4e2f06fe9c
commit
45c03f1440
|
@ -355,7 +355,7 @@ class PairHistory(BaseModel):
|
|||
|
||||
class Config:
|
||||
json_encoders = {
|
||||
datetime: lambda v: v.strftime(DATETIME_PRINT_FORMAT)
|
||||
datetime: lambda v: v.strftime(DATETIME_PRINT_FORMAT),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -963,10 +963,9 @@ class RPC:
|
|||
sell_mask = (dataframe['sell'] == 1)
|
||||
sell_signals = int(sell_mask.sum())
|
||||
dataframe.loc[sell_mask, '_sell_signal_close'] = dataframe.loc[sell_mask, 'close']
|
||||
"""
|
||||
band-aid until this is fixed:
|
||||
https://github.com/pandas-dev/pandas/issues/45836
|
||||
"""
|
||||
|
||||
# band-aid until this is fixed:
|
||||
# https://github.com/pandas-dev/pandas/issues/45836
|
||||
datetime_types = ['datetime', 'datetime64', 'datetime64[ns, UTC]']
|
||||
date_columns = dataframe.select_dtypes(include=datetime_types)
|
||||
for date_column in date_columns:
|
||||
|
|
Loading…
Reference in New Issue
Block a user