import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
pic = Image.open('mountain1.jpg')
pic_array = np.asarray(pic)
# plt.imshow(pic_array[:,:,2], cmap='gray')
pic_array[:,:,2]=0
plt.imgshow(pic_array)
plt.show()
i get the following error/ pic_array[:,:,2]=0 ValueError: assignment destination is read-only How do i edit the array?