data is created to be the return array that holds the peak values found, and I wanted it to have a float dtype, so that the peak values didn't lose any decimal places. I wasn't sure if I should have done this though?