File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def infer_dtype_by_scalar_data(data: Any):
113
113
return DataType .UNKNOWN
114
114
115
115
116
- def infer_dtype_bydata (data : Any , ** kargs ):
116
+ def infer_dtype_bydata (data : Any , ** kwargs ):
117
117
d_type = DataType .UNKNOWN
118
118
if is_scalar (data ):
119
119
return infer_dtype_by_scalar_data (data )
@@ -131,11 +131,11 @@ def infer_dtype_bydata(data: Any, **kargs):
131
131
d_type = dtype_str_map .get (type_str , DataType .UNKNOWN )
132
132
if is_varchar_datatype (d_type ) or is_bool_datatype (d_type ):
133
133
return DataType .ARRAY
134
- if kargs is None or len (kargs ) == 0 :
134
+ if kwargs is None or len (kargs ) == 0 :
135
135
return DataType .FLOAT_VECTOR if \
136
136
is_numeric_datatype (d_type ) else DataType .UNKNOWN
137
137
else :
138
- if kargs ["type" ] is not None and kargs ["type" ] == "vector" :
138
+ if kwargs ["type" ] is not None and kwargs ["type" ] == "vector" :
139
139
return DataType .FLOAT_VECTOR \
140
140
if is_numeric_datatype (d_type ) else DataType .UNKNOWN
141
141
else :
You can’t perform that action at this time.
0 commit comments