Skip to content

Commit

Permalink
replace [0] with iloc[0] in fractal_psdslope.py?
Browse files Browse the repository at this point in the history
  • Loading branch information
danibene authored Sep 7, 2023
1 parent f24637b commit 4b878ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurokit2/complexity/fractal_psdslope.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def fractal_psdslope(signal, method="voss1988", show=False, **kwargs):

# Get psd with fourier transform
psd = signal_psd(signal, sampling_rate=1000, method="fft", show=False, **kwargs)
psd = psd[psd["Frequency"] < psd.quantile(0.25)[0]]
psd = psd[psd["Frequency"] < psd.quantile(0.25).iloc[0]]
psd = psd[psd["Frequency"] > 0]

# Get slope
Expand Down

0 comments on commit 4b878ae

Please sign in to comment.