I have this task where I have to find the largest N value in ‘Salary’ column. How do i do that?
Here’s the code:
import numpy as np
import pandas as pd
# TODO: Find the largest number in 'Salary' column
data_one = pd.read_excel("C:\\Users\\HP\\Documents\\DataScience task\\Employee.xlsx")
dataframe_data = pd.DataFrame(data_one)
find_largest_salary = dataframe_data['Salary']
>Solution :
the way you have described the question, the answer is simply this:
find_largest_salary = dataframe_data['Salary'].max()