mad-lab-fau / BioPsyKit

A Python package for the analysis of biopsychological data.
MIT License
39 stars 8 forks source link

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

Open PhD-GOAT opened 3 months ago

PhD-GOAT commented 3 months ago
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.

richrobe commented 3 months ago

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 commented 3 months ago

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.