papermill icon indicating copy to clipboard operation
papermill copied to clipboard

integer keys in parameter dict converted to string

Open fkloosterman opened this issue 5 years ago • 1 comments

When I pass in a dictionary with integer keys as a parameter, these keys have been converted to strings when injected into the notebook. How can I prevent this conversion from happening?

fkloosterman avatar Mar 30 '20 13:03 fkloosterman

Generally since we are processing JSON / YAML payloads and JSON does not support integer key indexes (https://stackoverflow.com/questions/8758715/using-number-as-index-json). It also complicates translating to typed systems if the keys aren't all strings. I don't have a clean / general solution to this for python notebooks atm.

MSeal avatar Mar 31 '20 23:03 MSeal