---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [6], in <cell line: 1>()
----> 1 A.aoi(export='activities.json')
File ~/cloud/ALFA/alfa/main/alfa.py:169, in Alfa.aoi(self, export, nd)
167 f.write(row.to_json()+'\n')
168 else:
--> 169 aoi.to_json(export, orient='records')
170 print('saved to', export)
171 return aoi
File ~/.pyenv/versions/3.10.8/envs/ALFA/lib/python3.10/site-packages/pandas/core/generic.py:2558, in NDFrame.to_json(self, path_or_buf, orient, date_format, double_precision, force_ascii, date_unit, default_handler, lines, compression, index, indent, storage_options)
2555 config.is_nonnegative_int(indent)
2556 indent = indent or 0
-> 2558 return json.to_json(
2559 path_or_buf=path_or_buf,
2560 obj=self,
2561 orient=orient,
2562 date_format=date_format,
2563 double_precision=double_precision,
2564 force_ascii=force_ascii,
2565 date_unit=date_unit,
2566 default_handler=default_handler,
2567 lines=lines,
2568 compression=compression,
2569 index=index,
2570 indent=indent,
2571 storage_options=storage_options,
2572 )
File ~/.pyenv/versions/3.10.8/envs/ALFA/lib/python3.10/site-packages/pandas/io/json/_json.py:123, in to_json(path_or_buf, obj, orient, date_format, double_precision, force_ascii, date_unit, default_handler, lines, compression, index, indent, storage_options)
110 else:
111 raise NotImplementedError("'obj' should be a Series or a DataFrame")
113 s = writer(
114 obj,
115 orient=orient,
116 date_format=date_format,
117 double_precision=double_precision,
118 ensure_ascii=force_ascii,
119 date_unit=date_unit,
120 default_handler=default_handler,
121 index=index,
122 indent=indent,
--> 123 ).write()
125 if lines:
126 s = convert_to_line_delimits(s)
File ~/.pyenv/versions/3.10.8/envs/ALFA/lib/python3.10/site-packages/pandas/io/json/_json.py:175, in Writer.write(self)
173 def write(self):
174 iso_dates = self.date_format == "iso"
--> 175 return dumps(
176 self.obj_to_write,
177 orient=self.orient,
178 double_precision=self.double_precision,
179 ensure_ascii=self.ensure_ascii,
180 date_unit=self.date_unit,
181 iso_dates=iso_dates,
182 default_handler=self.default_handler,
183 indent=self.indent,
184 )
TypeError: 'float' object cannot be interpreted as an integer