Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update 595. Big Countries.py
  • Loading branch information
iamAntimPal committed Mar 29, 2025
commit 1a4b42a7b5b7b66a64dbc323079934d513e259e0
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import pandas as pd

def big_countries(world: pd.DataFrame) -> pd.DataFrame:
# Filter countries that are considered big by either area or population
result = world[(world['area'] >= 3000000) | (world['population'] >= 25000000)][['name', 'population', 'area']]
return result