Docstrings are evaluated, while comments are not

This commit is contained in:
Matthias 2022-02-09 07:02:44 +01:00
parent 4e2f06fe9c
commit 45c03f1440
2 changed files with 4 additions and 5 deletions

View File

@ -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),
}

View File

@ -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: