2025-08-06 06:34:35,431 - data_prep_class.py - INFO - 98 - Get data from Big Query with SELECT firma, datum, fg_sg, fg_bez, ladenvkp, katalogvkp, oeffnungszeit, fg_typ
FROM `test-ww-ki-witt.co_stat_daily_prognosis_bronzelayer.sales`
2025-08-06 06:34:40,626 - data_prep_class.py - INFO - 107 - firma datum fg_sg fg_bez ladenvkp katalogvkp oeffnungszeit fg_typ date
0 Sieh an! GmbH 2023-10-05 193 Dingolfing 24.75 46.00 Montag bis Freitag von 9.00 bis 18.00 Uhr | Sa... Basisfiliale 2023-10-05
1 Josef Witt GmbH 2023-10-05 193 Dingolfing 1635.58 2021.52 Montag bis Freitag von 9.00 bis 18.00 Uhr | Sa... Basisfiliale 2023-10-05
2 Josef Witt GmbH 2023-10-05 21 Neuburg a. d. Donau 3510.81 4274.58 Montag bis Freitag von 09.00 bis 18.00 Uhr | k... Basisfiliale 2023-10-05
3 Sieh an! GmbH 2023-10-05 21 Neuburg a. d. Donau 8.99 18.00 Montag bis Freitag von 09.00 bis 18.00 Uhr | k... Basisfiliale 2023-10-05
4 Sieh an! 2021-04-13 42 Simbach 26.71 31.00 Montag bis Freitag von 09.00 bis 18.00 Uhr | S... Preislandgeschäft 2021-04-13
2025-08-06 06:34:40,641 - dataprep_main.py - DEBUG - 39 - shape: (297743, 9) shops: 122 start: 2021-01-04 end: 2025-08-05 sumladenvkp: 279275228
2025-08-06 06:34:40,713 - data_prep_class.py - DEBUG - 137 - output of shops and codes found in sales data to fg_sg_bez.xlsx
2025-08-06 06:34:40,955 - dataprep_main.py - DEBUG - 50 - shape: (142672, 3) shops: 122 start: 2021-01-04 end: 2025-08-05 sumladenvkp: 279275228
2025-08-06 06:34:40,956 - data_prep_class.py - DEBUG - 180 - max date in dataframe: 2025-08-05 00:00:00
2025-08-06 06:34:40,956 - data_prep_class.py - DEBUG - 193 - date_range: 2025-08-06 00:00:00 2025-10-31 00:00:00
2025-08-06 06:34:41,056 - data_prep_class.py - DEBUG - 206 - size of new dataset: (10614, 3) vs 10614
2025-08-06 06:34:41,068 - data_prep_class.py - DEBUG - 210 - final size: (153286, 3)
2025-08-06 06:34:41,072 - dataprep_main.py - DEBUG - 58 - shape: (153286, 3) shops: 122 start: 2021-01-04 end: 2025-10-31 sumladenvkp: 279275228
2025-08-06 06:34:41,367 - dataprep_main.py - DEBUG - 69 - shape: (149097, 24) shops: 113 start: 2021-01-04 end: 2025-10-31 sumladenvkp: 275210019
2025-08-06 06:34:41,367 - data_prep_class.py - DEBUG - 255 - check Friedrichshafen
2025-08-06 06:34:41,383 - data_prep_class.py - DEBUG - 259 - date fg_sg fg_bez ladenvkp
129288 2024-01-02 183 Friedrichshafen 643.92
2025-08-06 06:35:18,461 - dataprep_main.py - DEBUG - 76 - shape: (149097, 24) shops: 113 start: 2021-01-04 end: 2025-10-31 sumladenvkp: 275210019
2025-08-06 06:35:18,479 - dataprep_main.py - DEBUG - 80 - shape: (149097, 24) shops: 113 start: 2021-01-04 end: 2025-10-31 sumladenvkp: 275210019
2025-08-06 06:35:25,968 - dataprep_main.py - DEBUG - 94 - shape: (115218, 38) shops: 113 start: 2022-01-03 end: 2025-06-30 sumladenvkp: 229488781
2025-08-06 06:35:25,968 - data_prep_class.py - DEBUG - 216 - before removing holidays: (115218, 38)
2025-08-06 06:35:25,982 - data_prep_class.py - DEBUG - 218 - aftere removing holidays: (115218, 38)
2025-08-06 06:35:25,987 - dataprep_main.py - DEBUG - 99 - shape: (115218, 38) shops: 113 start: 2022-01-03 end: 2025-06-30 sumladenvkp: 229488781
2025-08-06 06:35:26,404 - data_prep_class.py - DEBUG - 476 - missing values last year: lastyear_date 37065
lastyear_ladenvkp 37065
lastyear_fg_sg 37065
dtype: int64
2025-08-06 06:35:27,849 - dataprep_main.py - DEBUG - 138 - shape: (115218, 259) shops: 113 start: 2022-01-03 end: 2025-06-30 sumladenvkp: 229488781
2025-08-06 06:35:37,570 - data_prep_class.py - DEBUG - 433 - merge on agp - missing: lastyear_date 31920
lastyear_ladenvkp 31920
lastyear_fg_sg 31920
imputed_lastyear_ladenvkp 28931
imputed2_lastyear_ladenvkp 27534
av_lastyear_ladenvkp 27534
agp 7945
dtype: int64
2025-08-06 06:35:37,574 - dataprep_main.py - DEBUG - 146 - shape: (110073, 260) shops: 113 start: 2022-03-01 end: 2025-06-30 sumladenvkp: 221824313
2025-08-06 06:35:37,576 - data_prep_class.py - DEBUG - 440 - fill missing agp: 0
2025-08-06 06:35:37,579 - dataprep_main.py - DEBUG - 151 - shape: (110073, 260) shops: 113 start: 2022-03-01 end: 2025-06-30 sumladenvkp: 221824313