import matplotlib.pyplot as plt
import numpy as np
x, y = np.loadtxt('num.txt', delimiter=',', unpack=True)
plt.plot(x,y, label='Loaded from file!')
plt.xlabel('x')
plt.ylabel('y')
plt.title('Interesting Graph\nCheck it out')
plt.legend()
plt.show()
whenever I run this code, it shows me this error
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 11: ordinal not in range(128)".
how to open files in python on mac os ?