Skip to content

Commit 4dfa0dc

Browse files
author
Laurenz
committed
fix python read
1 parent 39ad790 commit 4dfa0dc

5 files changed

Lines changed: 7 additions & 9 deletions

File tree

2 Bytes
Binary file not shown.

‎scripts-python/clean_dataframe.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ def merge_columns(df,column_name1,column_name2):
6868
##generic cleaning
6969

7070
#order
71-
df = read_data.load_dataframe("order.pkl")
72-
df = clean_df_generic(df,0)
71+
#df = read_data.load_dataframe("order.pkl")
72+
#df = clean_df_generic(df,0)
7373

7474
#clickstream
75-
df2 = read_data.load_dataframe("click.pkl")
76-
df2 = clean_df_generic(df2,0)
75+
#df2 = read_data.load_dataframe("click.pkl")
76+
#df2 = clean_df_generic(df2,0)
7777

7878

7979

‎scripts-python/copy_open_zip.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ def copy_into_raw_data_and_data_understanding():
4444

4545

4646

47+
copy_into_raw_data_and_data_understanding()
48+
4749

‎scripts-python/initialize_data.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
copy_into_raw_data_and_data_understanding()
88

9-
109
#Order
1110
####
1211
##create new csv with head and data
@@ -18,8 +17,6 @@
1817
print(df_order.head(10))
1918

2019

21-
22-
2320
#clickstream
2421
####
2522
##create new csv with head and data
@@ -28,7 +25,6 @@
2825
## clean
2926
df_clickstream = clean_df_generic(df_clickstream,0)
3027

31-
3228
print(df_clickstream.head(10))
3329

3430

‎scripts-python/read_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ def load_dataframe(filename):
120120

121121

122122

123-
##test if dataset is altered by type change
123+
#test if dataset is altered by type change
124124
#df = read_raw_data("order_data.csv","order_columns.txt","order.xlsx","order.pkl")
125125
#print(df[["DoYouPurchaseForOthers","SendEmail","ProductCode","New Bank Card"]])

0 commit comments

Comments
 (0)