Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with types in tutorial? #4

Open
callforhelp123 opened this issue Jul 10, 2024 · 6 comments
Open

Error with types in tutorial? #4

callforhelp123 opened this issue Jul 10, 2024 · 6 comments
Assignees

Comments

@callforhelp123
Copy link

Hey, I am trying to follow along with the overview tutorial, and am running into this:

image

Wondering what I need to do to make this work; all I did was install Ethoscopy and then try to run the tutorial notebook!

@ggilestro
Copy link
Member

Can you please give more details on how you installed ethoscopy and which OS you're running?

@callforhelp123
Copy link
Author

Hey, I am on Windows 10; I used Anaconda Prompt and "pip install ethoscopy"

Thanks!!

@Lblackhurst29
Copy link
Member

I'm not really sure how this error is occurring as it is okay to pass the astype method when calling for the min() or max() of a pandas series, so it's not an explicit python / pandas error in the code.

Has the tutorial data loaded in fine? Could you send a screenshot when you print df to the notebook?

Sorry for the issues

@ggilestro
Copy link
Member

It looks the problem is that the .min() method is returning a type float instead of a type numpy.float
@callforhelp123 please run the code below and post the result here

import numpy as np
import pandas as pd

print (f"numpy: {np.__version__}")
print (f"pandas: {pd.__version__}")

@callforhelp123
Copy link
Author

No worries, thanks for the help!
@Lblackhurst29 it looks like the data is loading fine:
image

@ggilestro here are the results of the code:
image

@Lblackhurst29
Copy link
Member

@callforhelp123 Those package versions work in my environment, so i suspect it's an issue with Windows somehow. The numpy version is a bit old, so I suspect this isn't the most recent version of ethoscopy.

Could you upgrade it to 1.3.10 and see if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants