engineering_notation icon indicating copy to clipboard operation
engineering_notation copied to clipboard

TypeError: Object of type EngNumber is not JSON serializable when passing EngNumber to pandas dataframe

Open jj-github-jj opened this issue 4 years ago • 1 comments

Not sure if this is fundamental limitation that is easy to fix or not but get this error when trying to use EngNumber with pandas dataframe constructors. Workaround I have is to use float(eng_number_variable) with modules that dont work natively with EngNumber datatype so still really like engineering_notation module. Thanks for the useful module.

jj-github-jj avatar Dec 31 '21 16:12 jj-github-jj

I think that the workaround is the short-term fix, but I see where you would want something more useful within pandas. I currently have no plans to implement such a feature, but I would gladly accept a pull request and implement basic testing.

slightlynybbled avatar Jan 04 '22 13:01 slightlynybbled