I have such Python code:
import numpy as np import matplotlib.pyplot as plt def f(x): return np.int(x) x = np.arange(1, 15.1, 0.1) plt.plot(x, f(x)) pl
Use:
x.astype(int)
Here is the reference.