vacanza / holidays

Generate and work with holidays in Python
https://pypi.org/project/holidays
MIT License
1.45k stars 460 forks source link

South Korea holiday question #1789

Closed jamjam0109 closed 5 months ago

jamjam0109 commented 5 months ago

Hi friends, long time no see! I have a question. When I print out South Korea holidays, I don't get "5/1 labor day".

import holidays
import pandas as pd

year = 2024
country_code = 'KR'

holidays_in_year = getattr(holidays, country_code)(years=year)
holidays_df = pd.DataFrame(holidays_in_year.items(), columns=['dt', 'holiday']).sort_values('dt', ignore_index=True)
holidays_df

image

But it's in the code. What's wrong?

arkid15r commented 5 months ago

Hi @jamjam0109,

It's a BANK holiday. Please see the usage examples here.