ImSoErgodic / py-upset

A pure-python implementation of the UpSet suite of visualisation methods by Lex, Gehlenborg et al.
313 stars 57 forks source link

Input format #21

Closed MarlaWillemse closed 6 years ago

MarlaWillemse commented 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:

image

I then created a dictionary with the set name as a key and the strings belonging to a given set as a series:

image

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.

ctSkennerton commented 6 years ago

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

MarlaWillemse commented 6 years ago

Thanks, it works :)