File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -980,13 +980,16 @@ def form_blocks(data, axes):
980
980
# put "leftover" items in float bucket, where else?
981
981
# generalize?
982
982
float_dict = {}
983
+ complex_dict = {}
983
984
int_dict = {}
984
985
bool_dict = {}
985
986
object_dict = {}
986
987
datetime_dict = {}
987
988
for k , v in data .iteritems ():
988
989
if issubclass (v .dtype .type , np .floating ):
989
990
float_dict [k ] = v
991
+ elif issubclass (v .dtype .type , np .complexfloating ):
992
+ complex_dict [k ] = v
990
993
elif issubclass (v .dtype .type , np .datetime64 ):
991
994
datetime_dict [k ] = v
992
995
elif issubclass (v .dtype .type , np .integer ):
@@ -1001,6 +1004,10 @@ def form_blocks(data, axes):
1001
1004
float_block = _simple_blockify (float_dict , items , np .float64 )
1002
1005
blocks .append (float_block )
1003
1006
1007
+ if len (complex_dict ):
1008
+ complex_block = _simple_blockify (complex_dict , items , np .complex64 )
1009
+ blocks .append (complex_block )
1010
+
1004
1011
if len (int_dict ):
1005
1012
int_block = _simple_blockify (int_dict , items , np .int64 )
1006
1013
blocks .append (int_block )
You can’t perform that action at this time.
0 commit comments