Error Found
#66
-
|
Beta Was this translation helpful? Give feedback.
Answered by
remrama
May 16, 2022
Replies: 1 comment 10 replies
-
Try putting 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. |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
remrama
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try putting
squeeze=True
as an argument insidepd.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.