Got this error while creating a new dataframe. Example:
df = pd.DataFrame({'type': 20, 'status': 'good', 'info': 'text'},
index=[0])
Out[0]: TypeError: Cannot interpret '<attribute 'dtype' of 'numpy.generic' objects>' as a data type
I tried also pass index with quotation marks but it didn't work either.
Numpy version:
np.__version__
Out[1]: '1.20.1'
Thank you for any assistance.