Horje
pandas query on datetime Code Example
pandas query on datetime
from time import datetime

date_start = datetime(year_start, month_start, day_start)
date_end = datetime(year_end, month_end, day_end)

# df is your pandas dataframe
sel = df[(df['timestamp'] >= date_start) &\
         (df['timestamp'] <= date_end)]

# tested with
# python 3.9.4
# pandas 1.3.2




Python

Related
auto py to exe download for windows Code Example auto py to exe download for windows Code Example
how to mention someone discord.py Code Example how to mention someone discord.py Code Example
docker run python Code Example docker run python Code Example
how to make a nice login django form Code Example how to make a nice login django form Code Example
division in python Code Example division in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7