@@ -173,7 +173,7 @@ def __init__(self, data_frame, point_settings, precision=DEFAULT_WRITE_PRECISION
173
173
174
174
if key in data_frame_tag_columns :
175
175
# This column is a tag column.
176
- if null_columns [index ]:
176
+ if null_columns . iloc [index ]:
177
177
key_value = f"""{{
178
178
'' if { val_format } == '' or type({ val_format } ) == float and math.isnan({ val_format } ) else
179
179
f',{ key_format } ={{str({ val_format } ).translate(_ESCAPE_STRING)}}'
@@ -197,12 +197,12 @@ def __init__(self, data_frame, point_settings, precision=DEFAULT_WRITE_PRECISION
197
197
elif issubclass (value .type , np .bool_ ):
198
198
field_value = f'{ sep } { key_format } ={{{ val_format } }}'
199
199
elif issubclass (value .type , np .floating ):
200
- if null_columns [index ]:
200
+ if null_columns . iloc [index ]:
201
201
field_value = f"""{{"" if math.isnan({ val_format } ) else f"{ sep } { key_format } ={{{ val_format } }}"}}"""
202
202
else :
203
203
field_value = f'{ sep } { key_format } ={{{ val_format } }}'
204
204
else :
205
- if null_columns [index ]:
205
+ if null_columns . iloc [index ]:
206
206
field_value = f"""{{
207
207
'' if type({ val_format } ) == float and math.isnan({ val_format } ) else
208
208
f'{ sep } { key_format } ="{{str({ val_format } ).translate(_ESCAPE_STRING)}}"'
@@ -239,7 +239,7 @@ def __init__(self, data_frame, point_settings, precision=DEFAULT_WRITE_PRECISION
239
239
self .data_frame = data_frame
240
240
self .f = f
241
241
self .field_indexes = field_indexes
242
- self .first_field_maybe_null = null_columns [field_indexes [0 ] - 1 ]
242
+ self .first_field_maybe_null = null_columns . iloc [field_indexes [0 ] - 1 ]
243
243
244
244
#
245
245
# prepare chunks
0 commit comments