engineering_notation
engineering_notation copied to clipboard
TypeError: Object of type EngNumber is not JSON serializable when passing EngNumber to pandas dataframe
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.
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.