pandas - ndarray to series python -
i have ndarray one:
in [75]: z_r out[75]: array([[ 0.00909254], [ 0.02390291], [ 0.02998752]])
in here, want ask how convert things series, desired output this:
0 0.00909254 1 0.02390291 2 0.02998752
you can use one:
my_list = map(lambda x: x[0], z_r) ser = pd.series(my_list) in [86]: ser out[86]: 0 0.009093 1 0.023903 2 0.029988
actually, question how convert series ^^
Comments
Post a Comment