achabotl / pambox

Python auditory modeling toolbox.
http://pambox.org
BSD 3-Clause "New" or "Revised" License
35 stars 8 forks source link

Fix warning "A value is trying to be set on a copy of a slice from a DataFrame" in Experiment #27

Closed achabotl closed 9 years ago

achabotl commented 9 years ago

/Users/chabot/Dropbox/PhD/pambox/pambox/speech/experiment.py:604: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame

It happens in pred_to_pc. Should use .loc instead of double indexing.

achabotl commented 9 years ago

Fixed by d9713df.