Update functions.py
Browse files- functions.py +0 -11
functions.py
CHANGED
|
@@ -120,17 +120,6 @@ def get_weather_df(data):
|
|
| 120 |
|
| 121 |
return new_data
|
| 122 |
|
| 123 |
-
def data_encoder(X):
|
| 124 |
-
X.drop(columns=['date', 'name'], inplace=True)
|
| 125 |
-
X['conditions'] = OrdinalEncoder().fit_transform(X[['conditions']])
|
| 126 |
-
return X
|
| 127 |
-
|
| 128 |
-
def transform(df):
|
| 129 |
-
df.loc[df["windgust"].isna(),'windgust'] = df['windspeed']
|
| 130 |
-
df['snow'].fillna(0,inplace=True)
|
| 131 |
-
df['snowdepth'].fillna(0, inplace=True)
|
| 132 |
-
df['pressure'].fillna(df['pressure'].mean(), inplace=True)
|
| 133 |
-
return df
|
| 134 |
|
| 135 |
|
| 136 |
def get_aplevel(temps:np.ndarray) -> list:
|
|
|
|
| 120 |
|
| 121 |
return new_data
|
| 122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
|
| 125 |
def get_aplevel(temps:np.ndarray) -> list:
|