def test_bytes_proxy_roundtrip(self): proxy = pd.DataFrame({'bytes': []}) proxy.bytes = proxy.bytes.astype(bytes) roundtripped = schemas.generate_proxy( schemas.element_type_from_dataframe(proxy)) self.assertEqual(roundtripped.bytes.dtype.kind, 'S')
def test_nice_types_proxy_roundtrip(self): roundtripped = schemas.generate_proxy( schemas.element_type_from_dataframe(NICE_TYPES_PROXY)) self.assertTrue(roundtripped.equals(NICE_TYPES_PROXY))