numpy.ndarray.tolist will do it:
a.tolist()
If your data is a pandas series you can call their tolist wrapper with the same result.
numpy.ndarray.tolist will do it:
a.tolist()
If your data is a pandas series you can call their tolist wrapper with the same result.