forked from kubapok/auta-public
magic
This commit is contained in:
parent
7ae168e1cb
commit
e41231f1ea
1994
dev-0/out.tsv
1994
dev-0/out.tsv
File diff suppressed because it is too large
Load Diff
@ -6,9 +6,10 @@ import numpy as np
|
|||||||
brands = None
|
brands = None
|
||||||
|
|
||||||
def process_data(df):
|
def process_data(df):
|
||||||
df["age"] = df.year.apply(lambda x: np.sqrt(2017-x))
|
df["age"] = 2018 - df["year"]
|
||||||
df["sqrt_mileage"] = df.mileage.apply(lambda x: np.sqrt(x))
|
df["sqrt_age"] = df.age**0.7
|
||||||
df["sqrt_engine_capacity"] = df.engine_capacity.apply(lambda x: np.sqrt(x))
|
df["sqrt_mileage"] = df.mileage ** 0.7
|
||||||
|
df["sqrt_engine_capacity"] = df.engine_capacity ** 0.7
|
||||||
global brands
|
global brands
|
||||||
if not brands:
|
if not brands:
|
||||||
brands = df.brand.value_counts()[:35].index.tolist()
|
brands = df.brand.value_counts()[:35].index.tolist()
|
||||||
|
1992
test-A/out.tsv
1992
test-A/out.tsv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user