595. 大的国家
为保证权益,题目请参考 595. 大的国家(From LeetCode).
解决方案1
Python
python
import pandas as pd
def big_countries(world: pd.DataFrame) -> pd.DataFrame:
return world[(world["area"] >= 3000000) | (world["population"] >= 25000000)][
["name", "population", "area"]
]
1
2
3
4
5
6
7
2
3
4
5
6
7