GenAICoder commited on
Commit
c213f53
·
verified ·
1 Parent(s): b028754

Create helper/vintage_helpers.py

Browse files
Files changed (1) hide show
  1. helper/vintage_helpers.py +15 -0
helper/vintage_helpers.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+
3
+
4
+ def create_booking_vintage(
5
+ df,
6
+ booking_date_col="booking_date"
7
+ ):
8
+
9
+ df = df.copy()
10
+
11
+ df["booking_vintage"] = (
12
+ pd.to_datetime(df[booking_date_col]).dt.strftime("%Y%m")
13
+ )
14
+
15
+ return df