Answers for "numpy has no attribute 'series'"

0

'Series' object has no attribute 'to_numpy'

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]
Posted by: Guest on May-01-2021

Code answers related to "numpy has no attribute 'series'"

Python Answers by Framework

Browse Popular Code Answers by Language