File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
### 1.74
4
4
* Feature: #688 Remove Chunkstore check for issue #422
5
+ * Bugfix: #712 Pandas deprecation warning in chunkstore serializer
5
6
6
7
### 1.73 (2018-11-27)
7
8
* Bugfix: #658 Write/append errors for Panel objects from older pandas versions
Original file line number Diff line number Diff line change @@ -74,15 +74,15 @@ def _convert_types(self, a):
74
74
else :
75
75
mask = None
76
76
77
- if infer_dtype (a ) == 'mixed' :
77
+ if infer_dtype (a , skipna = False ) == 'mixed' :
78
78
# assume its a string, otherwise raise an error
79
79
try :
80
80
a = np .array ([s .encode ('ascii' ) for s in a ])
81
81
a = a .astype ('O' )
82
82
except :
83
83
raise ValueError ("Column of type 'mixed' cannot be converted to string" )
84
84
85
- type_ = infer_dtype (a )
85
+ type_ = infer_dtype (a , skipna = False )
86
86
if type_ in ['unicode' , 'string' ]:
87
87
max_len = max_len_string_array (a )
88
88
return a .astype ('U{:d}' .format (max_len )), mask
@@ -115,7 +115,7 @@ def docify(self, df):
115
115
masks [str (c )] = Binary (compress (mask .tostring ()))
116
116
arrays .append (arr .tostring ())
117
117
except Exception as e :
118
- typ = infer_dtype (df [c ])
118
+ typ = infer_dtype (df [c ], skipna = False )
119
119
msg = "Column '{}' type is {}" .format (str (c ), typ )
120
120
logging .info (msg )
121
121
raise e
You can’t perform that action at this time.
0 commit comments