Closed MarlaWillemse closed 6 years ago
Hi
I'm struggling to format my data for py-upset.
As far as I can see from the sample data, each set is a dictionary key, and the data to be compared between sets is a series corresponding to a key.
I created a dataframe with 2 columns- the first containing the set name and the second containing the corresponding strings:
I then created a dictionary with the set name as a key and the strings belonging to a given set as a series:
I ran the commands:
% matplotlib inline import pyupset as pyu pyu.plot(be_dict)
...and received the error: AttributeError: 'Series' object has no attribute 'columns'
Any help would be appreciated.
This is how I've formatted data for it previously https://stackoverflow.com/questions/44874835/how-can-we-format-data-like-this-pickle/46479351#46479351
I hope this also works for you
Thanks, it works :)
Hi
I'm struggling to format my data for py-upset.
As far as I can see from the sample data, each set is a dictionary key, and the data to be compared between sets is a series corresponding to a key.
I created a dataframe with 2 columns- the first containing the set name and the second containing the corresponding strings:
I then created a dictionary with the set name as a key and the strings belonging to a given set as a series:
I ran the commands:
% matplotlib inline import pyupset as pyu pyu.plot(be_dict)
...and received the error: AttributeError: 'Series' object has no attribute 'columns'
Any help would be appreciated.