I have a Pandas DataFrame with a \'date\' column. Now I need to filter out all rows in the DataFrame that have dates outside of the next two months. Essentially, I only need
How about using pyjanitor
pyjanitor
It has cool features.
After pip install pyjanitor
pip install pyjanitor
import janitor df_filtered = df.filter_date(your_date_column_name, start_date, end_date)