Issue
Currently, I am using DataFrame.iloc to cut my dataframe into small dataframes based on integer position.
#df_all is my full dataframe that includes a column for date and time
df_some = df_all.iloc[100:4000]
However, when I use this method, I have to guess the integer values until I get the correct start and end dates. Is there a method I can use to split up my data frames using dates?
Extra: below is an example of what my dataframe looks like
Thank you for your time! -Bojan
Solution
df_some = df_all.loc['2021-08-04 19:05:00':'2021-08-05 19:10:00']
Thank you Kyle Parsons!
Answered By - Bojan Milinic
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.