Icon

Date - Business Days and Holidays - Germany

<p>Extract the public holidays for each federal geman state ("Bundesland") - also extract the vacations ("Schulferien") for a given year.</p><p></p><p>You can adapt this for other countries as well. Let ChatGPT give you a list of holidays and vacations.</p><p></p><p>You will have a list of the dates and you can then match which day is a holiday or when schools will be closed. You can count how many states are on holiday. If it is 16 it is a national holiday.</p><p></p><p>You might have to deal with regional special holiday like the 8th of August in Augsburg "Hohes Friedensfest" or carnival ("Rosenmontag").</p><p></p><p>--------</p><p>Also: Calculate the number of working days between any give dates. Excluding Saturdays and Sundays and also a given list of dates</p><p></p><p>--------</p><p>Also: Check how many Bundesländer's schools will be closed on any given day - for ML you could give weights by the population or use this if you have a location based task</p><p></p><p>--------</p><p>Also: Mark gap days (Brückentage) that are between a public holiday and a weekend for example</p>

URL: R solution with bizdays https://forum.knime.com/t/working-days-network-days-between-two-dates/14682/4?u=mlauber71
URL: A solution with R using "officeholidays" https://forum.knime.com/t/dividing-and-splitting-rows/11381/5?u=mlauber71
URL: Python Conda: Generate and work with holidays in Python https://anaconda.org/conda-forge/holidays
URL: Medium: Business Days and Holidays in KNIME https://medium.com/p/1a161782b074
URL: Forum: first working day in the next month https://forum.knime.com/t/filter-by-less-than-or-equal-first-business-day-of-the-following-month/17467/12?u=mlauber71
URL: AP-14411 - Ticket to handle Business Days in KNIME https://forum.knime.com/search?q=AP-14411

Due to API restrictions if a query fails you can re-do it later

Extract the public holidays for each federal geman state ("Bundesland") - also extract the vacations ("Schulferien") for a given year.

You can adapt this for other countries as well. Let ChatGPT give you a list of holidays and vacations.

You will have a list of the dates and you can then match which day is a holiday or when schools will be closed. You can count how many states are on holiday. If it is 16 it is a national holiday.

You might have to deal with regional special holiday like the 8th of August in Augsburg "Hohes Friedensfest" or carnival ("Rosenmontag").

KNIME and Python — Setting up and managing Conda environments
https://medium.com/p/2ac217792539

Calculate the number of working days between any give dates. Excluding Saturdays and Sundays and also a given list of extra dates ("Feiertage")
Check how many Bundesländer's schools will be closed on any given day - for ML you could give weights by the population or use this if you have a location based task

The 'Ferien' (vacations) lists have been created by ChatGPT - you might want to check some (regional) details like HH where they seem not to have certain types of holidays. Also some days will have to be covered by holidays for the whole of Germany (looking at you Saarland 2027).

What percentage of the population will be on vacation on any given date in Germany

You could use this in Machine Learning so as to indicate how many people are on vacation. Or if you know the region you could assigne this information.

Try to extract lists of school vacations per german state from a website / API
Determine Gap Days ("Brückentage" in German) - days that are between a holiday and a weekend. Like when Thursday is a holiday and Friday would be a gap day

KNIME — Machine Learning and Artificial Intelligence — A Collection
https://medium.com/p/12e0f7d83b50

Blog: Business Days and Holidays in KNIME

https://medium.com/p/1a161782b074

KNIME Snippets (5) — Python Overview

https://medium.com/p/aa4f3a55a768

Extract a list of holidays for Germany and German states from python package 'holidays' for a given year
holidays
Parquet Writer
vacationsall files back into one
Parquet Reader
Min_DateMax_Date
Table Row to Variable
Reference Row Filter
String to Date&Time
range of dates
Date&Time Range Creator
Variable Loop End
DateBundesland
Duplicate Row Filter
iterate over each statefor which you have holidays
Group Loop Start
Create File/Folder Variables
create rangeof datesfrom the Start and End date
Date&Time Range Creator
year_bundesland
Java Edit Variable (simple)
Table Row to Variable Loop Start
Constant Value Column
Holiday=1
Constant Value Column
Date&Time Part Extractor
BrueckentagBeschreibung
Expression
Empty Table Switch
Loop End
sort by date
Sorter
/holidays/*.parquetcollect all years where you haveholidays for into one file
Parquet Reader
Joiner
vacations
Parquet Writer
/csv_schulferien/*.csv2024 - 2029
CSV Reader
import holidays
Python Script
BL_Year
GroupBy
bundesland
Table Creator
https://ferien-api.de/api/v1/holidays/{state}/{year}
Python Script
feiertage.xlsx
Excel Writer
feiertage.xlsxbundeseinheitlich
Excel Writer
Merge Variables
each day will only have to be counted once
Duplicate Row Filter
Create File/Folder Variables
year
String Configuration
Column Resorter
Table Row to Variable Loop Start
list of all days with vacationslist of all holidaysper german state
Concatenate
GroupBy
number_working_days
Column Renamer
excludeSaturdaySunday
Row Filter
list of working days remain
Reference Row Filter
SamstagSonntag
Date&Time Part Extractor
check if complete
GroupBy
Column Renamer
GroupBy
check if complete
GroupBy
feiertage.xlsxfrom Python package"import holidays"
Excel Reader
Date&Time Part Extractor
Joiner
SamstagSonntag
Date&Time Part Extractor
Activate Conda Environmentbased on Operating SystemWindows or macOS
conda_environment_kaggle
"bundeseinheitliche" Feiertageyou could use any list ofdays you consider non-working days
Row Filter
create rangeof dates
Date&Time Range Creator
Prozent_Frei
Expression
Einwohner_D
Table Row to Variable
GroupBy
check if complete
GroupBy
feiertage.xlsxbundeseinheitlich
Excel Reader
vacations.table
Table Writer
Joiner
Einwohner_D
Column Renamer
holidays.table
Table Writer
Prozent_Frei.xlsx
Excel Writer
region_code
Constant Value Column
RowID
Expression
BL_Year
Java Snippet (simple)
Day of Week
Date&Time Part Extractor
if($["Day of Week (Name)"] = "Samstag" OR $["Day of Week (Name)"] = "Sonntag",1,$["Holiday"])
Expression
Path to String
Joiner
Loop End
Cell Splitter
GroupBy
Missing Value
vacations
List Files/Folders
schulferien.xlsxSchulferien_Übersicht
Excel Writer
URL to File Path
Bevölkerung_Bundesland.csv
CSV Reader
combination of state and date asRowID
RowID
Catch Errors (Var Ports)
SamstagSonntag
Date&Time Part Extractor
Merge Variables
Sorter
Column Renamer
gap_days.table"Brückentage"
Table Writer
Try (Variable Ports)
create range of dates
Art_der_Ferienwhat type of vacation is it?
Constant Value Column
Bundesland
Constant Value Column
Number to String
Frei_Anzahl_Bundesländer
Column Renamer
BL_Year
Java Snippet (simple)
schulferien.xlsxFrei_Anzahl_Bundesländer
Excel Writer
schulferien.xlsxSchulferien_Tage
Excel Writer
GroupBy

Nodes

Extensions

Links