Spaces:
Sleeping
Sleeping
Download preprocess.py from vallabbharath/Backend: direct link, hf CLI and curl.
- Browser
- Download file 266 Bytes
-
https://huggingface.co/spaces/vallabbharath/Backend/resolve/main/preprocess.py
- Command line
-
hf download hf://spaces/vallabbharath/Backend/preprocess.py
-
curl -L -o preprocess.py https://huggingface.co/spaces/vallabbharath/Backend/resolve/main/preprocess.py
266 Bytes
| def custom_preprocessing(X): | |
| X = X.copy() | |
| X['Store_Age'] = 2025 - X['Store_Establishment_Year'] | |
| X.drop('Store_Establishment_Year', axis=1, inplace=True) | |
| X['Product_Sugar_Content'] = X['Product_Sugar_Content'].replace({'reg': 'Regular'}) | |
| return X | |