How to convert ndarray to series in python How to convert ndarray to series in python pandas pandas

How to convert ndarray to series in python


You can use this one:

my_list = map(lambda x: x[0], z_r)ser = pd.Series(my_list)In [86]:serOut[86]:0      0.0090931      0.0239032      0.029988

Actually, your question is how to convert to series ^^


pd.Series(my_ndarray)

no need to convert it first to a list then to series.


z_r.tolist()