Skip to content

Error Found #66

Closed Answered by remrama
PhD-GOAT asked this question in Q&A
May 16, 2022 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

Try putting squeeze=True as an argument inside pd.read_csv.

Thanks for including your code. You can see the issue is where yasa checks to make sure you are using a list, numpy array, or pandas series for your hypnogram. I suspect you have a 1-column dataframe instead. There are many (easy) solutions if that's the problem, inserting the squeeze argument is just one.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@remrama
Comment options

remrama May 16, 2022
Collaborator

@PhD-GOAT
Comment options

@PhD-GOAT
Comment options

@raphaelvallat
Comment options

@PhD-GOAT
Comment options

Answer selected by remrama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants