Skip to content

Commit beb50ef

Browse files
authored
Update README_EN.md
1 parent 3da753b commit beb50ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

solution/0100-0199/0177.Nth Highest Salary/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ import pandas as pd
9393

9494

9595
def nth_highest_salary(employee: pd.DataFrame, N: int) -> pd.DataFrame:
96+
if N < 1:
97+
return pd.DataFrame({"getNthHighestSalary(" + str(N) + ")": [None]})
9698
unique_salaries = employee.salary.unique()
9799
if len(unique_salaries) < N:
98100
return pd.DataFrame([np.NaN], columns=[f"getNthHighestSalary({N})"])

0 commit comments

Comments
 (0)