[FEATURE] Implicit column for dataframe API
See original GitHub issueIs your feature request related to a problem? Please describe. I find it very redundant and unnecessary to repeat typing a column reference for api functions that act on a single column dataframe.
Describe the solution you’d like
Implicitly determine the column for functions that are applied to dataframes with only one column. This could easily be done by checking length of [...this[__columns__]]
. This would be particularly useful for df.toArray()
since currently using it on a single column returns an array of single element arrays which I can’t see any use case for. That said, I believe many other functions can be served from this feature and it will also reduce a lot of repetition.
Describe alternatives you’ve considered Perhaps a new Series object similar to pandas library.
Additional context N/A
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Hi @mbkupfer, I m currently working on it, I will submit (in this issue) a proposal about the api.
Hi that’s a good point. I will see what could be done ! Thank you for your suggestion