Skip to content
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

liniting_rule_E #350

Merged
merged 3 commits into from
Nov 8, 2024
Merged

liniting_rule_E #350

merged 3 commits into from
Nov 8, 2024

Conversation

mschwoer
Copy link
Contributor

@mschwoer mschwoer commented Oct 18, 2024

fixes for linting rules E
get rid of the non-breaking spaces

@@ -37,7 +37,7 @@ def save_plot_to_session_state(plot, method):


def display_df(df):
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should use pandas stylers, rather than changing the data, as this can become quite a lot to handle. Also not sure, why we need this.

return result

return wrapper


def find_duplicates_in_list(l: list) -> list:
"""Find duplicates in a list
def find_duplicates_in_list(input_list: list) -> list:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This function is only used once to assert index uniqueness, and should be replaced with https://pandas.pydata.org/docs/reference/api/pandas.Index.has_duplicates.html#pandas.Index.has_duplicates

Base automatically changed from liniting_rule_F to development November 8, 2024 16:30
@mschwoer mschwoer merged commit fd8230d into development Nov 8, 2024
4 of 5 checks passed
@mschwoer mschwoer deleted the liniting_rule_E branch November 8, 2024 16:32
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