dmnfarrell / pandastable

Table analysis in Tkinter using pandas DataFrames.
Other
636 stars 124 forks source link

Cannot plot any data #235

Open Buckeyes1995 opened 1 year ago

Buckeyes1995 commented 1 year ago

I've been trying to plot data from the pandastable I created. I kept getting an error that the 'subplots had to be iterable or a boolean'. I thought it might be a data type issue, so I created a simple Data Frame:

    data = [[1, 1.2], [2, 0.98], [3, 1.12], [4, 0.54], [5, 0.99], [6, 1.12]]

    df_EmployeeTTest = pd.DataFrame(data, columns=['Date', 'Employee'])

    pt = Table(frame1, dataframe=df_EmployeeTTest, showtoolbar=True)
    pt.show() 
    pt.showIndex()

and verified the data type:

print(df_EmployeeTTest.dtypes)
Date          int64
Employee    float64
dtype: object

no matter what I do, I get the error message:

image

Any ideas?

DWLMARKPICKELL commented 1 year ago

Having exactly same issue. I can't plot any data set I upload regardless of datatype.

dmnfarrell commented 1 year ago

This bug doesn't seem to be present in the latest version on github. You can install using pip install -e git+https://github.com/dmnfarrell/pandastable.git#egg=pandastable instead. I'll update the pip release as well.

DWLMARKPICKELL commented 1 year ago

Thanks after updating using the git address provided I can now see graphs.

From: Damien Farrell @.> Sent: Monday, March 27, 2023 11:16 AM To: dmnfarrell/pandastable @.> Cc: Mark Pickell @.>; Comment @.> Subject: Re: [dmnfarrell/pandastable] Cannot plot any data (Issue #235)

This bug doesn't seem to be present in the latest version on github. You can install using pip install -e git+https://github.com/dmnfarrell/pandastable.git#egg=pandastable instead. I'll update the pip release as well.

- Reply to this email directly, view it on GitHubhttps://github.com/dmnfarrell/pandastable/issues/235#issuecomment-1485429007, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZGGX5DHYKRMYIDPUIJOUR3W6G4KXANCNFSM6AAAAAAVNMOOGU. You are receiving this because you commented.Message ID: @.**@.>>

Diversified Well Logging LLC. CONFIDENTIALITY NOTICE: This e-mail transmission, including attachments, if any, is intended for use only by the addressee(s) named herein and contains confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by reply e-mail or telephone and delete the original and destroy all electronic and other copies of this message. If you are the intended recipient but do not wish to receive communications through this medium, please so advise the sender immediately.