Closed
Description
Hi all,
I raised an issue over at pylance:
microsoft/pylance-release#2933
These has been an update, but the error became TimestampSeries instead Series[Timestamp]
to replicate:
import pandas as pd
df = pd.DataFrame(['2020-01-01','2019-01-01'])
dates = pd.to_datetime(df[0], format = '%Y-%m-%d')
date_to_compare = pd.to_datetime('2019-02-01', format = '%Y-%m-%d')
date_mask = date_to_compare <= dates
Generated the type error in vs code:
Operator "<=" not supported for types "Timestamp" and "TimestampSeries"
Operator "<=" not supported for types "Timestamp" and "TimestampSeries"
PylancereportGeneralTypeIssues
Would like to create a PR to help, but just started to figure out how type stubs work, so might need a time :-)
Metadata
Metadata
Assignees
Labels
No labels