ig-python / trading-ig

A lightweight Python wrapper for the IG Markets API
https://trading-ig.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
313 stars 197 forks source link

ValueError: columns cannot be a set #270

Closed eg271 closed 1 year ago

eg271 commented 1 year ago

Looks like Pandas new version (1.5.2) doesn't allow sets for columns so several locations in the code need to be adapted somehow:

            if len(data) == 0:
                data = pd.DataFrame(columns=self.colname_unique(cols))
                return data
eg271 commented 1 year ago

Update: This is already handled in latest commits - just need to bump release version

bug-or-feature commented 1 year ago

0.0.19 released today includes the fix