We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b10026 commit ce0db6fCopy full SHA for ce0db6f
LeetCode SQL 50 Solution/620. Not Boring Movies/620. Not Boring Movies.py
@@ -0,0 +1,7 @@
1
+import pandas as pd
2
+
3
+def not_boring_movies(cinema: pd.DataFrame) -> pd.DataFrame:
4
+ # Filter movies with odd-numbered id and description not equal to 'boring'
5
+ result = cinema[(cinema['id'] % 2 == 1) & (cinema['description'] != 'boring')]
6
+ # Sort the result by rating in descending order
7
+ return result.sort_values(by='rating', ascending=False)
LeetCode SQL 50 Solution/620. Not Boring Movies/readme.md
@@ -1,5 +1,3 @@
-
# **620. Not Boring Movies**
## **Problem Statement**
0 commit comments