human
What is a good Python function to sort data in based on column values? What is python's good function to sort the data in.
assistant
Here is a Python function to sort data in based on column values

import numpy as np

def sort_data(data, column):
    """Sorts data in based on column values"""
    return sorted(data, key=lambda x: x[column])

# Enter the dataset
dataset = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])

# Calling the function
print((sort_data(dataset, 0)))

#Example Output
# [array([1, 2, 3]), array([4, 5, 6]), array([7, 8, 9])]

#Remember to inspect code for bugs.