From 9134f059da6ec6e93905b36e4720a4d00b9212cd Mon Sep 17 00:00:00 2001 From: schaermicha1 Date: Fri, 13 Mar 2026 21:01:04 +0100 Subject: [PATCH] refactor WhoLikesIt.py and PandasTutorial.py --- src/codewars/PandasTutorial.py | 3 --- src/codewars/WhoLikesIt.py | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/codewars/PandasTutorial.py b/src/codewars/PandasTutorial.py index 0567f8d..f762890 100644 --- a/src/codewars/PandasTutorial.py +++ b/src/codewars/PandasTutorial.py @@ -5,9 +5,6 @@ def export_csv_with_name_and_grade(student_name: str, grade: str): students_df = pd.read_csv("files/students.csv", index_col=False) grades_df = pd.read_csv("files/grades.csv", index_col=False) - print(students_df) - print(grades_df) - students_grades_df = students_df.merge( grades_df, left_on="Student_ID", right_on="ID" ) diff --git a/src/codewars/WhoLikesIt.py b/src/codewars/WhoLikesIt.py index 8324a7f..df9b188 100644 --- a/src/codewars/WhoLikesIt.py +++ b/src/codewars/WhoLikesIt.py @@ -1,7 +1,5 @@ def likes(names): - length = len(names[:4]) - - match length: + match len(names): case 0: return "no one likes this" case 1: