Skip to content

Create Metrics.yml #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: Metrics embed
uses: lowlighter/[email protected]
166 changes: 166 additions & 0 deletions src/test.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"# Holidays\n",
"\n",
"### hhygft\n",
"\n",
"\n",
"jhkjgkjgkgjhu"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Holidays in 2023 (US):\n",
"2023-01-01: New Year's Day\n",
"2023-01-02: New Year's Day (Observed)\n",
"2023-01-16: Martin Luther King Jr. Day\n",
"2023-02-20: Washington's Birthday\n",
"2023-05-29: Memorial Day\n",
"2023-06-19: Juneteenth National Independence Day\n",
"2023-07-04: Independence Day\n",
"2023-09-04: Labor Day\n",
"2023-10-09: Columbus Day\n",
"2023-11-10: Veterans Day (Observed)\n",
"2023-11-11: Veterans Day\n",
"2023-11-23: Thanksgiving\n",
"2023-12-25: Christmas Day\n",
"\n",
"Holidays in 2024 (US):\n",
"2024-01-01: New Year's Day\n",
"2024-01-15: Martin Luther King Jr. Day\n",
"2024-02-19: Washington's Birthday\n",
"2024-05-27: Memorial Day\n",
"2024-06-19: Juneteenth National Independence Day\n",
"2024-07-04: Independence Day\n",
"2024-09-02: Labor Day\n",
"2024-10-14: Columbus Day\n",
"2024-11-11: Veterans Day\n",
"2024-11-28: Thanksgiving\n",
"2024-12-25: Christmas Day\n",
"\n",
"Holidays in 2025 (US):\n",
"2025-01-01: New Year's Day\n",
"2025-01-20: Martin Luther King Jr. Day\n",
"2025-02-17: Washington's Birthday\n",
"2025-05-26: Memorial Day\n",
"2025-06-19: Juneteenth National Independence Day\n",
"2025-07-04: Independence Day\n",
"2025-09-01: Labor Day\n",
"2025-10-13: Columbus Day\n",
"2025-11-11: Veterans Day\n",
"2025-11-27: Thanksgiving\n",
"2025-12-25: Christmas Day\n",
"\n",
"Holidays in 2026 (US):\n",
"2026-01-01: New Year's Day\n",
"2026-01-19: Martin Luther King Jr. Day\n",
"2026-02-16: Washington's Birthday\n",
"2026-05-25: Memorial Day\n",
"2026-06-19: Juneteenth National Independence Day\n",
"2026-07-03: Independence Day (Observed)\n",
"2026-07-04: Independence Day\n",
"2026-09-07: Labor Day\n",
"2026-10-12: Columbus Day\n",
"2026-11-11: Veterans Day\n",
"2026-11-26: Thanksgiving\n",
"2026-12-25: Christmas Day\n",
"\n",
"Holidays in 2027 (US):\n",
"2027-01-01: New Year's Day\n",
"2027-01-18: Martin Luther King Jr. Day\n",
"2027-02-15: Washington's Birthday\n",
"2027-05-31: Memorial Day\n",
"2027-06-18: Juneteenth National Independence Day (Observed)\n",
"2027-06-19: Juneteenth National Independence Day\n",
"2027-07-04: Independence Day\n",
"2027-07-05: Independence Day (Observed)\n",
"2027-09-06: Labor Day\n",
"2027-10-11: Columbus Day\n",
"2027-11-11: Veterans Day\n",
"2027-11-25: Thanksgiving\n",
"2027-12-24: Christmas Day (Observed)\n",
"2027-12-25: Christmas Day\n",
"2027-12-31: New Year's Day (Observed)\n",
"\n",
"Holidays in 2028 (US):\n",
"2028-01-01: New Year's Day\n",
"2028-01-17: Martin Luther King Jr. Day\n",
"2028-02-21: Washington's Birthday\n",
"2028-05-29: Memorial Day\n",
"2028-06-19: Juneteenth National Independence Day\n",
"2028-07-04: Independence Day\n",
"2028-09-04: Labor Day\n",
"2028-10-09: Columbus Day\n",
"2028-11-10: Veterans Day (Observed)\n",
"2028-11-11: Veterans Day\n",
"2028-11-23: Thanksgiving\n",
"2028-12-25: Christmas Day\n",
"\n"
]
}
],
"source": [
"import holidays\n",
"\n",
"# Define the years for which you want to list holidays\n",
"start_year = 2023\n",
"end_year = 2028\n",
"\n",
"# Define the country for which you want to list holidays\n",
"country = 'US' # Change this to your desired country code\n",
"\n",
"# Iterate over each year in the range\n",
"for year in range(start_year, end_year + 1):\n",
" # Get the list of holidays for the current year\n",
" holiday_list = holidays.CountryHoliday(country=country, observed=True, years=year)\n",
"\n",
" # Print the holidays for the current year\n",
" print(f\"Holidays in {year} ({country}):\")\n",
" for date, name in sorted(holiday_list.items()):\n",
" print(f\"{date}: {name}\")\n",
" print()\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}