@@ -2116,22 +2116,6 @@ def get_object(self, obj):
2116
2116
""" return the data for this obj """
2117
2117
return obj
2118
2118
2119
- def convert_objects (self , obj ):
2120
- """ attempt to convert any object fields; don't touch other fields
2121
- if we are converting anything, copy the object and modify the copy """
2122
- new_obj = None
2123
- convert_f = lambda x : lib .maybe_convert_objects (x , convert_datetime = True )
2124
-
2125
- for col , s in obj .iteritems ():
2126
- if s .dtype == np .object_ :
2127
- if new_obj is None :
2128
- new_obj = obj .copy ()
2129
- new_obj [col ] = convert_f (s )
2130
-
2131
- if new_obj is not None :
2132
- return new_obj
2133
- return obj
2134
-
2135
2119
def create_axes (self , axes , obj , validate = True , nan_rep = None , data_columns = None , min_itemsize = None , ** kwargs ):
2136
2120
""" create and return the axes
2137
2121
leagcy tables create an indexable column, indexable index, non-indexable fields
@@ -2177,9 +2161,6 @@ def create_axes(self, axes, obj, validate=True, nan_rep=None, data_columns=None,
2177
2161
nan_rep = 'nan'
2178
2162
self .nan_rep = nan_rep
2179
2163
2180
- # convert the objects if we can to better divine dtypes
2181
- obj = self .convert_objects (obj )
2182
-
2183
2164
# create axes to index and non_index
2184
2165
index_axes_map = dict ()
2185
2166
for i , a in enumerate (obj .axes ):
@@ -2780,9 +2761,6 @@ def get_object(self, obj):
2780
2761
obj = obj .transpose (* self .data_orientation )
2781
2762
return obj
2782
2763
2783
- def convert_objects (self , obj ):
2784
- return obj
2785
-
2786
2764
@property
2787
2765
def is_transposed (self ):
2788
2766
return self .data_orientation != tuple (range (self .ndim ))
0 commit comments