Human: replace numpy missing values nan. Assistant: 
Here is a Python function to replace numpy missing values

import numpy as np

def replace_nan(x):
    """
    Replace nan with 0.
    """
    return np.where(np.isnan(x), 0, x)

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

# Calling the function
print((replace_nan(x)))

#Example Output
# [ 1  2  3  4  5  6  7  8  9 10]

#Remember to inspect code for bugs.