some changes in python file

This commit is contained in:
s487178 2023-04-05 20:11:52 +02:00
parent 05c892510a
commit 9ff871c91b
2 changed files with 7 additions and 3 deletions

View File

@ -10,7 +10,10 @@ import seaborn as sns
from sklearn.model_selection import train_test_split from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler from sklearn.preprocessing import MinMaxScaler
df = pd.read_csv(r'.\body_performance.csv') try:
df = pd.read_csv(r'.\body_performance.csv')
except:
df = pd.read_csv(r'./body_performance.csv')
df['BMI'] = df['weight_kg']/(0.0001*df['height_cm']*df['height_cm']) df['BMI'] = df['weight_kg']/(0.0001*df['height_cm']*df['height_cm'])
print(df.head()) print(df.head())

View File

@ -8,7 +8,8 @@ RUN apt-get update \
&& pip install --user kaggle \ && pip install --user kaggle \
&& pip install --user pandas \ && pip install --user pandas \
&& pip install --user plotly \ && pip install --user plotly \
&& pip install --user seaborn && pip install --user seaborn \
&& pip install --user scikit-learn
ENV PATH="/root/.local/bin:$PATH" ENV PATH="/root/.local/bin:$PATH"
@ -16,4 +17,4 @@ WORKDIR /app
RUN git clone https://git.wmi.amu.edu.pl/s487178/ium_s487178.git /app RUN git clone https://git.wmi.amu.edu.pl/s487178/ium_s487178.git /app
CMD ["python3", "body_performance.py"] #CMD ["python3", "body_performance.py"]