import pandas as pd pd.__version__As mention by @scidam you need 0.24 --> for
.to_numpy()
to work.I guess if you just remove
.to_numpy()
it will work on earlier version.Upgrade:
pip3 install --upgrade pandasOr as me i have
pip
point to Python 3.7.Test from command line with
-V
tom@tom:~$ python -V Python 3.7.3 tom@tom:~$ pip -V pip 19.1 from /home/tom/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)