Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, it is still possible to aggregate date values when there are NaT values in pandas columns. However, the NaT values will be excluded from the aggregation calculations. If you do not want to exclude NaT values, you can use the fillna method to replace the NaT values with a valid date value before aggregating.