-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
38 lines (15 loc) · 794 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import pandas as pd
def main():
pass
# Load heinemann_de and aelia_cz products from input_data folder
# Concatenate data
# Load products mapping from input_data folder
# Keep only products available in products mapping (based on internal id and retailer)
# Split updated at into date and time
# Compute mean price for each product and day and assign it to "Mean price column"
# Keep only needed columns (title, internalid, retailer, country, actual_price, in_sale, url, price mean)
# Save resulting dataset into output.csv
# Generate dataset containing only last record for each product (not all products have been available on 2024-06-25)
# Save resulting dataaset into output_latest.csv
if __name__ == '__main__':
main()