human
Write me a Python function to determine probability distribution of data.
assistant
Here is a Python function to determine probability distribution of data

import numpy as np

def __get_probability_distribution(data):
    """Determine probability distribution of data."""
    data = np.array(data)
    data = data.reshape(-1)
    data = data.astype(float)
    data = data / np.sum(data)
    return data

# Enter the data
data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((__get_probability_distribution(data)))

#Example Output
# [0.01818182 0.03636364 0.05454545 0.07272727 0.09090909 0.10909091
#  0.12727273 0.14545455 0.16363636 0.18181818]

#Remember to inspect code for bugs.