Python pandas.core.internals.ObjectBlock() Examples

The following are 5 code examples for showing how to use pandas.core.internals.ObjectBlock(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

You may check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module pandas.core.internals , or try the search function .

Example 1
Project: recruit   Author: Frank-qlu   File: casting.py    License: Apache License 2.0 5 votes vote down vote up
def test_astype_object_series(self, all_data):
        ser = pd.Series({"A": all_data})
        result = ser.astype(object)
        assert isinstance(result._data.blocks[0], ObjectBlock) 
Example 2
Project: vnpy_crypto   Author: birforce   File: casting.py    License: MIT License 5 votes vote down vote up
def test_astype_object_series(self, all_data):
        ser = pd.Series({"A": all_data})
        result = ser.astype(object)
        assert isinstance(result._data.blocks[0], ObjectBlock) 
Example 3
def test_astype_object_series(self, all_data):
        ser = pd.Series({"A": all_data})
        result = ser.astype(object)
        assert isinstance(result._data.blocks[0], ObjectBlock) 
Example 4
Project: coffeegrindsize   Author: jgagneastro   File: casting.py    License: MIT License 5 votes vote down vote up
def test_astype_object_series(self, all_data):
        ser = pd.Series({"A": all_data})
        result = ser.astype(object)
        assert isinstance(result._data.blocks[0], ObjectBlock) 
Example 5
Project: twitter-stock-recommendation   Author: alvarobartt   File: casting.py    License: MIT License 5 votes vote down vote up
def test_astype_object_series(self, all_data):
        ser = pd.Series({"A": all_data})
        result = ser.astype(object)
        assert isinstance(result._data.blocks[0], ObjectBlock)