Skip to content

Conversation

@koljakt8
Copy link

@koljakt8 koljakt8 commented Jun 3, 2025

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.

Copy link
Owner

@fynn3003 fynn3003 Jun 5, 2025

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/)

Copy link
Owner

@fynn3003 fynn3003 left a 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):
Copy link
Owner

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"):
Copy link
Owner

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")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, cooles easteregg

Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants