AttributeError: Series object has no attribute toarray

52

df[i].values.tolist()
import pandas as pd
import numpy as np

s = pd.Series([1.1, 2.3])
a = np.array(s)
print(a)  # [1.1 2.3]

Comments

Submit
0 Comments