What is dtype('O'), in pandas?

前端 未结 4 1074
我在风中等你
我在风中等你 2020-12-02 07:08

I have a dataframe in pandas and I\'m trying to figure out what the types of its values are. I am unsure what the type is of column \'Test\'. However, when I ru

4条回答
  •  眼角桃花
    2020-12-02 07:52

    It means "a python object", i.e. not one of the builtin scalar types supported by numpy.

    np.array([object()]).dtype
    => dtype('O')
    

提交回复
热议问题