Float values as dictionary key

前端 未结 5 768
时光说笑
时光说笑 2020-11-27 21:30

I am developing a class for the analysis of microtiter plates. The samples are described in a separate file and the entries are used for an ordered dictionary. One of the ke

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 22:06

    Another way would be enter the keys as strings with the point rather than a p and then recast them as floats for plotting.

    Personally, if you don't insist on the dict format, I would store the data as a pandas dataframe with the pH as a column as these are easier to pass to plotting libraries

提交回复
热议问题