refactor WhoLikesIt.py and PandasTutorial.py
This commit is contained in:
1 parent
d0609303dc
commit
9134f059da
2 files changed
+1
-6
No files matched your search
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user