lincc-frameworks / lincc-frameworks/nested-pandas
Allow series outputs for single-column `NestedSeries.explode`, `NestSeriesAccessor.to_flat`, `NestSeriesAccessor.to_lists` results
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26
- Forks
- 8
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 9
Description
Very related to #381
These functions will always return dataframes, but in cases where there's only a single sub-column I think it would be nice to have these return a series instead. Motivated by the deprecation of `get_flat_series`, there's a performance consequence (see ~50% slowdown in some cases) to using these functions as a replacement that is due to the unnecessary dataframe casting involved in to_flat and/or explode.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating NestedSeries.explode and NestSeriesAccessor.to_flat and to_lists, then inspect how they currently cast single-sub-column results to dataframes. Confirm the expected series behavior and performance impact against the related issue #381; done means single-sub-column cases return series while existing multi-column behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- pandas, python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100