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

AttributeError: 'numpy.ndarray' object has no attribute 'index' #50

Open
PhD-GOAT opened this issue Apr 30, 2024 · 2 comments
Open

AttributeError: 'numpy.ndarray' object has no attribute 'index' #50

PhD-GOAT opened this issue Apr 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@PhD-GOAT
Copy link

image

sleep_results = bp.sleep.sleep_processing_pipeline.predict_pipeline_acceleration( data, sampling_rate=60)

The error appears when I use the biopsykit module. I'm curious as to why this happens even though I followed the dataframe guides uses.

@PhD-GOAT PhD-GOAT added the bug Something isn't working label Apr 30, 2024
@richrobe
Copy link
Member

Hi, can you please provide more information on the problem? A screenshot of the error message to see in which line exactly the error occurred would already help a lot...

@PhD-GOAT
Copy link
Author

PhD-GOAT commented Apr 30, 2024

but data is in the form of Index(['acc_x', 'acc_y', 'acc_z'], dtype='object').

AttributeError: 'numpy.ndarray' object has no attribute 'index'

I don't understand why an error occurs even though that dataframe have an index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants