Skip to content

Commit ce0db6f

Browse files
committed
add
1 parent 4b10026 commit ce0db6f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
# **620. Not Boring Movies**
42

53
## **Problem Statement**

0 commit comments

Comments
 (0)