But when type of dates is numpy.ndarray[datetime.date], line is displayed.
Question
I can understand that type of dates must be list[datetime.datetime] not list[datetime.date].
But I cannot understand that type of dates must be numpy.ndarray[datetime.date] not list[datetime.date].
Why is line displayed when type of dates is numpy.ndarray[datetime.date]?
I can imagine a few interpretations of this. You need to to provide the actual code that creates the array that works. Most likely, numpy has done its own conversion to a datetime dtype, but without code, that is just speculation.
Hi @yuji38kwmt I should have specified more explicitly: please provide a complete code, i.e. a Minimal Reproducible Example that can copy and pasted and run immediately with no modifications. The code above is missing imports, at least.
@yuji38kwmt I am not sure why it is not showing for you. Your account is at Trust-Level 1 so as far as I know, you should be able to edit your own posts. At this point, probably simplest to include the MRE in a reply.
Ah, I had a look at the serialization code, and recalled why this is. We serialize date objects as ISO date strings in order that things like date-pickers can function correctly. Date objects are not going to work in this situation, you will need to convert to datetimes or timestamps.