@@ -173,7 +173,7 @@ def __init__(self, data_frame, point_settings, precision=DEFAULT_WRITE_PRECISION
173173
174174 if key in data_frame_tag_columns :
175175 # This column is a tag column.
176- if null_columns [index ]:
176+ if null_columns . iloc [index ]:
177177 key_value = f"""{{
178178 '' if { val_format } == '' or type({ val_format } ) == float and math.isnan({ val_format } ) else
179179 f',{ key_format } ={{str({ val_format } ).translate(_ESCAPE_STRING)}}'
@@ -197,12 +197,12 @@ def __init__(self, data_frame, point_settings, precision=DEFAULT_WRITE_PRECISION
197197 elif issubclass (value .type , np .bool_ ):
198198 field_value = f'{ sep } { key_format } ={{{ val_format } }}'
199199 elif issubclass (value .type , np .floating ):
200- if null_columns [index ]:
200+ if null_columns . iloc [index ]:
201201 field_value = f"""{{"" if math.isnan({ val_format } ) else f"{ sep } { key_format } ={{{ val_format } }}"}}"""
202202 else :
203203 field_value = f'{ sep } { key_format } ={{{ val_format } }}'
204204 else :
205- if null_columns [index ]:
205+ if null_columns . iloc [index ]:
206206 field_value = f"""{{
207207 '' if type({ val_format } ) == float and math.isnan({ val_format } ) else
208208 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
239239 self .data_frame = data_frame
240240 self .f = f
241241 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 ]
243243
244244 #
245245 # prepare chunks
0 commit comments