Building Data Analytics and Data Science solutions using Microsoft Fabric | Principal PM, Microsoft Fabric CAT
Principal Program Manager, Microsoft Fabric CAT helping users and organizations build scalable, insightful, secure solutions. Blogs, opinions are my own and do not represent my employer.
Markdown supported · ⌘↵ to post
Not sure if your experience was different, however I had to drop the .date off the following two statements to work correctly as the comparison wasn't returning true for Today.
df['IsTodayFlag']=(df['Date'] == today).astype(int) df['IsToday'] = np.where(df['Date'] == today, 1, 0)
Hope this helps - Chris Jones
Dean J
Thanks for this article! Can you pass parameters for start and end dates?