PyBloqs icon indicating copy to clipboard operation
PyBloqs copied to clipboard

library doesn't work with pandas v2.0.x

Open giordanocolombi opened this issue 2 years ago • 1 comments

Hi there,

I've noticed that the library doesn't work with pandas v2.0.x

AttributeError: 'Series' object has no attribute 'append'

or

'pandas.core.series.Series object' has no attribute 'iteritems'

Do you have a version compatible with the lastest version of pandas?

Best, Giordano

giordanocolombi avatar Jun 12 '23 14:06 giordanocolombi

a manual fix to use pybloqs for pandas > 2.x: locate file "...\Lib\site-packages\pybloqs\jinja\table.html" and change line 44 from {% for col_name, cell in row.iteritems() %} to {% for col_name, cell in row.items() %}

ArturSepp avatar May 24 '24 16:05 ArturSepp