Tuesday, November 21, 2017

Panda Dataframe Rolling Function Window Type Examples


Panda Dataframe Rolling Function Window Type Examples

I was trying to figure out the difference between all the window types in the rolling function.  So i plotted them all.  This may help you decide which one to use also.  They are all subtly different.  I used a window size of 50.

You can find the different types here:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.rolling.html


You can find the code i used to make the plots here:
https://github.com/ricorx7/rti_python/blob/master/Plots/rti_sql_plot_mag_dir.py

This data is the water velocity collected by an Rowe Technologies Inc. ADCP in the waters in Chile between 8/03/2017 and 9/24/2017.  It is collected just under 2 months.  So you see the increase and decrease in water speeds. The high and low tides.  The yellow band is near the water surface.


Window Type: None
Window Size: 1


Window Type: None
Window Size: 50

Window Type: Bartlett
Window Size: 50


Window Type: Barthann
Window Size: 50


Window Type: Blackman
Window Size: 50



Window Type: BlackmanHarris
Window Size: 50



Window Type: Bohman
Window Size: 50


Window Type: Boxcar
Window Size: 50



Window Type: Gaussian
Window Size: 50
STD: 0.1




Window Type: Gaussian
Window Size: 50
STD: 1.0


Window Type: Hamming
Window Size: 50


Window Type: Nutall
Window Size: 50


Window Type: Parzen
Window Size: 50

4 comments:

  1. Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.

    Data Science Training in Bangalore

    ReplyDelete
  2. Play online casinos with fun and money fun slots Fun money, take while there.

    ReplyDelete
  3. Разноцветная светодиодная лента или как ее еще называют светодиодная лента rgb наверое одно из лучших изобретений которое придумали люди, очень забавная штука.

    ReplyDelete
  4. You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen. panda cookie cutter set

    ReplyDelete