Traceback (most recent call last):
File "/home/heiwater/Note/ML/Lenet5/LeNet-5-with-Keras/lenet_5.py", line 19, in <module>
sample = sample.reshape([28,28])
File "/home/heiwater/.local/lib/python3.8/site-packages/pandas/core/generic.py", line 5465, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'Series' object has no attribute 'reshape'
X_train = X_train.reshape(X_train.shape[0], 28, 28, 1)
X_train = X_train.value.reshape(X_train.shape[0], 28, 28, 1)
i have already try to run it on the Windows 10 and Ubuntu 20.04,they report the same error
and my python version is 3.8.5 my panda version is 1.2.3