Examples

In [1]:
import numpy as np
import pandas as pd 
In [5]:
pd.Series([3, 4, 5]).values
Out[5]:
array([3, 4, 5], dtype=int64)
In [7]:
pd.Series(list('xxyz')).values
Out[7]:
array(['x', 'x', 'y', 'z'], dtype=object)

In [8]:
pd.Series(list('xxyz')).astype('category').values
Out[8]:
[x, x, y, z]
Categories (3, object): [x, y, z]

Timezone aware datetime data is converted to UTC:

In [9]:
pd.Series(pd.date_range('20190402', periods=4,
                         tz='US/Eastern')).values
Out[9]:
array(['2019-04-02T04:00:00.000000000', '2019-04-03T04:00:00.000000000',
       '2019-04-04T04:00:00.000000000', '2019-04-05T04:00:00.000000000'],
      dtype='datetime64[ns]')