I have a HTTP requests log. The included features are: capture_time, ip, method, url, content, user_agent
All this information is in a csv file.
i want to group all requests from the same IP between a 10 minutes interval.
how can i do that using pandas?
example dataset:
date ip method url content agent
- 2019-04-24 23:16:48.742466
- 187.20.211.99
- POST
- /delivery/check_location
- bairro=Vila&cidade=Lima
- Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML like Gecko) Mobile/15E148
i have already tried using groupby method.
i would like to merge all the requests content in one row (for those grouped using ip and time)