Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have invoice dates(estimates) for about 100 customers spread across 60 columns as some are weekly/monthly/quarterly/yearly. I am trying to create a new column that will have only dates that fall in current month. I tries using filter function but did not work well - can you please suggest

What I have tried:

currentmon = datetime.datetime.now().strftime("%m")
df3 = df.loc[df['A'] == 'currentmon']
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900