Quantcast
Channel: Keep only dataframe rows where date is whole hour - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Keep only dataframe rows where date is whole hour

$
0
0

I have a dataframe with data in 15m intervals

stock fullname open high low close volume date0 AAPL Apple Inc. 206.3940 206.5050 206.0100 206.3040 2242259.0 2019-09-03 09:45:001 AAPL Apple Inc. 206.3200 206.9500 206.2960 206.6900 1094447.0 2019-09-03 10:00:002 AAPL Apple Inc. 206.6700 206.6700 204.3800 204.4200 1837739.0 2019-09-03 10:15:003 AAPL Apple Inc. 204.4282 205.0963 204.4156 204.8282 1199631.0 2019-09-03 10:30:004 AAPL Apple Inc. 204.8174 205.4500 204.5300 205.1924 959709.0 2019-09-03 10:45:00

Question is, how do I keep only the whole hour rows? (eg. 2019-09-03 10:00:00)


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images