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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-09-15 11:00:00 +0000
Seen: 7 times
Last updated: Jan 14 '22
How to perform batch geocoding when longitude and latitude values are missing?
How can a new object with a specific type be created in Angular 2 using the domain model?
What is the method to eliminate NA from facet_wrap in ggplot2?
How can a text/varchar column be shortened when duplicate values are not permitted?
How are `all: unset` and `all: revert` dissimilar from each other?
How can I set values on a Map using more than one parameter from a nativeQuery?
What is the problem encountered when attempting to filter the column values of a data.frame?
How can an array be filtered using the values in another array?