You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However I receive the issue TypeError: Invalid comparison between dtype=datetime64[ns] and Timestamp with the following traceback:
venv/lib/python3.11/site-packages/quantstats/reports.py:108: in html
returns, benchmark = _match_dates(returns, benchmark)
venv/lib/python3.11/site-packages/quantstats/reports.py:45: in _match_dates
loc = max(returns[returns.columns[0]].ne(0).idxmax(), benchmark.ne(0).idxmax())
venv/lib/python3.11/site-packages/pandas/core/ops/common.py:81: in new_method
return method(self, other)
venv/lib/python3.11/site-packages/pandas/core/arraylike.py:56: in __gt__
return self._cmp_method(other, operator.gt)
venv/lib/python3.11/site-packages/pandas/core/series.py:6096: in _cmp_method
res_values = ops.comparison_op(lvalues, rvalues, op)
venv/lib/python3.11/site-packages/pandas/core/ops/array_ops.py:279: in comparison_op
res_values = op(lvalues, rvalues)
venv/lib/python3.11/site-packages/pandas/core/ops/common.py:81: in new_method
return method(self, other)
venv/lib/python3.11/site-packages/pandas/core/arraylike.py:56: in __gt__
return self._cmp_method(other, operator.gt)
venv/lib/python3.11/site-packages/pandas/core/arrays/datetimelike.py:937: in _cmp_method
return invalid_comparison(self, other, op)
The more I tried to solve this the more indexing issues I ran into, I was wondering if the maintainers would object to me adding some pytest tests to try and wrangle this bug?
The text was updated successfully, but these errors were encountered:
I was attempting to get this library working with the following code:
However I receive the issue
TypeError: Invalid comparison between dtype=datetime64[ns] and Timestamp
with the following traceback:The more I tried to solve this the more indexing issues I ran into, I was wondering if the maintainers would object to me adding some pytest tests to try and wrangle this bug?
The text was updated successfully, but these errors were encountered: