Skip to content

Commit

Permalink
changed graphic in section analaysis
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBernarding committed Jul 12, 2024
1 parent d28472d commit ee05e61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def load_data():
st.write("- 3 most frequent flight routes: ORY-TUN, TUN-ORY, TUN-TUN")
st.write("- departure airport same as arrival airport: could be e.g. flight school")
st.write("- top 3 flight routes with most delay time: ORY-TUN, TUN-ORY, IST-TUN")
st.write("- ORY-TUN (Paris-Tunis) contributes ~5 % to total delay time")
#st.write("- ORY-TUN (Paris-Tunis) contributes ~5 % to total delay time")
st.write("\n\n")
st.write("\n\n")
st.write("Get additional information:")
Expand All @@ -143,20 +143,21 @@ def load_data():
st.write("- binary encoding for categorical features e.g. airport, airline, producer")
st.write("- drop unnecessary columns")
st.write("- convert target into categories")
st.write("- standardization of data before splitting and training")

st.write("\n\n")
st.write("\n\n")

data = {'Interval': ["No delay", "0 - 30 min", "30 - 60 min", "60 - 120 min", "120 - 240 min", "> 240 min"]}
df_cat = pd.DataFrame(data)
df_cat.index += 1
st.dataframe(df_cat)
#data = {'Interval': ["No delay", "0 - 30 min", "30 - 60 min", "60 - 120 min", "120 - 240 min", "> 240 min"]}
#df_cat = pd.DataFrame(data)
#df_cat.index += 1
#st.dataframe(df_cat)

st.write("\n\n")
st.write("\n\n")


image = Image.open('images/target_cat_distribution.png')
image = Image.open('images/delay_categories_distribution.png')
st.image(image, caption='Different categories for target', use_column_width=True)


Expand Down
Binary file added images/delay_categories_distribution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ee05e61

Please sign in to comment.