Error when max with a datetime.date Series #24109
Labels
datetime.date
stdlib datetime.date support
Enhancement
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Reduction Operations
sum, mean, min, max, etc.
Problem description
It's a little tricky for this bug.
I received an error when I tried to maximize a series type of date with None value, but it failed throwing an error.
Then using to_datetime().dt.date, it converts to date. Still not work for s1.max(), but this time, works fine for max(s1), Too noisy.
While for the datetime, it works fine for everything.
Expected Output
Output of
pd.show_versions()
[INSTALLED VERSIONS
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.23.4
pytest: None
pip: 18.1
setuptools: 39.0.1
Cython: None
numpy: 1.15.1
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.3
openpyxl: 2.5.9
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
None]
The text was updated successfully, but these errors were encountered: