Answers for "numpy.ndarray to series pandas"

2

series to numpy array

np_array = series.to_numpy()
Posted by: Guest on May-20-2021
0

pandas series to numpy array

ser.to_numpy(dtype="datetime64[ns]")
... 
array(['1999-12-31T23:00:00.000000000', '2000-01-01T23:00:00...'],
      dtype='datetime64[ns]')
Posted by: Guest on November-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language