fafbseg.flywire.get_edit_history¶
- fafbseg.flywire.get_edit_history(x, progress=True, errors='raise', max_threads=4, *, dataset=None)[source]¶
Fetch edit history for given neuron(s).
Note that neurons that haven’t seen any edits will simply not show up in returned table.
- Parameters:
x (int | list of int | NeuronCriteria) – Segmentation (root) ID(s).
progress (bool) – If True, show progress bar.
max_threads (int) – Max number of parallel requests to server.
dataset ("public" | "production" | "sandbox" | "flat_630", optional) – Against which FlyWire dataset to query. If
None
will fall back to the default dataset (seeset_default_dataset()
).
- Return type:
pandas.DataFrame
Examples
>>> from fafbseg import flywire >>> # Fetch edits >>> edits = flywire.get_edit_history(720575940621039145) >>> # Group by user >>> edits.groupby('user_name').size() user_name Claire McKellar 47 Jay Gager 4 Sandeep Kumar 1 Sarah Morejohn 6 dtype: int64