We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4fb639 commit 52eb813Copy full SHA for 52eb813
backtesting/_util.py
@@ -26,7 +26,7 @@ def _as_list(value):
26
27
def _data_period(df):
28
"""Return data index period as pd.Timedelta"""
29
- return df.index[:100].to_series().diff().median()
+ return df.index[:100].to_series(keep_tz=True).diff().median()
30
31
32
class _Array(np.ndarray):
0 commit comments