New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Dates displayed as zero epoch in a DataTable is one element isn't a date #12187
Comments
@maximlt This is because you are using You can either
cc @bokeh/dev Currently
I am not sure why that is reasonable. I am not sure when string timestamps would be expected. We could try to parse ISO date strings into datetime timestamps, but that way lies timezone pain. We could just display ISO date-strings as-is, but then the |
A |
The issue's question and this reply helped me. I went on and imported the "date" columns as ps- This data table example example in the gallery is also wrong. |
Software versions
Python version : 3.8.12 (default, Oct 12 2021, 06:23:56)
IPython version : 7.30.0
Tornado version : 6.1
Bokeh version : 2.4.3
BokehJS static path : /Users/mliquet/miniconda3/envs/panel-dev38/lib/python3.8/site-packages/bokeh/server/static
node.js version : v17.0.1
npm version : 8.1.0
Operating system : macOS-10.16-x86_64-i386-64bit
Browser name and version
No response
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
The
DateFormatter
should format the dates even when the column contains NaNs.Observed behavior
If the column contains NaNs the non-NaN dates are all rendered as zero epoch (1970-01-01). Actually, it's not just NaNs, if in the example I replace
np.nan
byNone
, or even"foo"
, the table is always rendered in the same way, as shown in the screenshot. This bug looks similar to this one: #10769Example code
Stack traceback or browser console output
No response
Screenshots
The text was updated successfully, but these errors were encountered: