-
Notifications
You must be signed in to change notification settings - Fork 1
Version 2.1 with some changes in UI and functionality #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming of file (app(1.0).py) not according to PEP 8 (check: https://peps.python.org/pep-0008/)
fynn3003
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check Comments!
| # Only process if both origin and destination are present | ||
| if pd.notnull(row.get('origin', None)) and pd.notnull(row.get('destination', None)) and row['origin'] and row['destination']: | ||
| # Try to find airport by ICAO or IATA code | ||
| def find_airport(code): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function defined in if condition, should not be like this. Either define function on Top or define in helper file!
| aircraft_counts = df['Aircraft'].value_counts() | ||
| airline_counts = df['Airline'].value_counts() | ||
|
|
||
| def render_stat_blocks(title, counts, color="#4F8BF9", label="Flights"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function defined in if condition, should not be like this. Either define function on Top or define in helper file!
| st.write("Add a new flight:") | ||
| airline = st.text_input("Airline", placeholder="Lufthansa") | ||
| aircraft = st.text_input("Aircraft", placeholder="B747-8i") | ||
| registration = st.text_input("Registration", placeholder="D-EEGL") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, cooles easteregg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should put the personal_flight_data.csv in .gitignore file!
New features have been added to allow an even deeper look in to one's flight data analysis.
Some bug fixes have been made, for example where NULL entries in the data would disrupt processing of said data.
Some changes to the UI were also done, going along with the new features.