pandas filter series by hour from datetime64 code example Example: pandas df filter by time hour dataset[dataset.index.hour == 9]