File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3136,17 +3136,17 @@ def get_type(item, atype=int):
3136
3136
def get_justify (colname , column , precision ):
3137
3137
ntype = column .dtype
3138
3138
3139
- if np .issubdtype (ntype , str ) or np .issubdtype ( ntype , bytes ):
3139
+ if np .issubdtype (ntype , np .character ):
3140
3140
fixed_width = int (ntype .str [2 :])
3141
3141
length = max (len (colname ), fixed_width )
3142
3142
return 0 , length + padding , "%s" # left justify
3143
3143
3144
- if np .issubdtype (ntype , int ):
3144
+ if np .issubdtype (ntype , np . integer ):
3145
3145
length = max (len (colname ),
3146
3146
np .max (list (map (len , list (map (str , column ))))))
3147
3147
return 1 , length + padding , "%d" # right justify
3148
3148
3149
- if np .issubdtype (ntype , float ):
3149
+ if np .issubdtype (ntype , np . floating ):
3150
3150
fmt = "%." + str (precision ) + "f"
3151
3151
length = max (
3152
3152
len (colname ),
You can’t perform that action at this time.
0 commit comments