Feature request: Support for plotting `pint` scalars
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
I love the figures generated with plotly. I want to use it as the backend for a Pandas dataframe that has units of measurement using (Pint). Unfortunately, these plots fail with the error:
AttributeError: 'float' object has no attribute 'tolist'
It seems that the issue is that Plotly is not recognizing Pint scalars as scalars. A MWE example is given on the following pint-pandas issue.
Thanks.
Contributor guide
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 with the MWE linked in pint-pandas issue #249 and reproduce the reported AttributeError through the Plotly Pandas dataframe backend. Trace how Pint scalars are recognized during plotting, then verify that the MWE produces figures without the error for unit-bearing data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- pandas, python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100