human
What is a good Python function to top values in columns.
assistant
Here is a Python function to top values in columns

import pandas as pd

def top_values(df, column):
  """Returns the top values in a column."""
  df = df.sort_values(by=column, ascending=False)
  return df.head(10)

# Create a dataframe
df = pd.DataFrame({'age': [1, 2, 3], 'name': ['rose','skateboard','mouse']})

# Calling the function
print((top_values(df, 'age')))

#Example Output

#    age        name
# 2    3       mouse
# 1    2  skateboard
# 0    1        rose

#Remember to inspect code for bugs.