Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9d29dee

Browse files
Update the solution
1 parent 0bdcf5d commit 9d29dee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎30-days-pandas/0595-big-countries.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@
5555
import pandas as pd
5656

5757
def big_countries(world: pd.DataFrame) -> pd.DataFrame:
58-
df = world[(world["area"] >= 3000000) | (world["population"] >= 25000000)]
59-
return df[["name","population","area"]]
58+
return world[(world['area'] >= 3000000) | (world['population'] >= 25000000)][['name', 'population', 'area']]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /