Public holisdays

Wilcocks Attie, FG-6-C1-2 0 Reputation points
2026-04-24T12:30:53.5366667+00:00

I would like to download he 2026 public holidays in csv. format. I need Country, Date and Holiday

Microsoft 365 and Office | Excel | Other | Windows
0 comments No comments

1 answer

Sort by: Oldest
  1. AI answer

    2026-04-24T12:31:03.8+00:00

    Use the Azure Open Datasets Public Holidays dataset, which already contains worldwide holidays from 1970 to 2099, including 2026, with the columns Country/Region, Date, and Holiday name.

    In Python, download the 2026 holidays and save them as CSV like this:

    from azureml.opendatasets import PublicHolidays
    from datetime import datetime
    
    # Define 2026 date range
    start_date = datetime(2026, 1, 1)
    end_date = datetime(2026, 12, 31)
    
    # Load dataset filtered to 2026
    hol = PublicHolidays(start_date=start_date, end_date=end_date)
    hol_df = hol.to_pandas_dataframe()
    
    # Keep only Country, Date, Holiday columns
    hol_df = hol_df[["countryOrRegion", "date", "holidayName"]]
    
    # Save to CSV
    hol_df.to_csv("public_holidays_2026.csv", index=False)
    

    This produces a public_holidays_2026.csv file with:

    • countryOrRegion (Country)
    • date (Date of the holiday)
    • holidayName (Holiday)

    If needed, open the CSV in Excel for further filtering or formatting.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.