loops - Python: Relative Percentage Change -


During the period of 213 days, in relation to the next value is required .

  doy = df.DoY GPP = df.GPP_st_grams_half_hourly [(df.GPP_st_grams> 0) & amp; (Df.SWDR> 0)] month = df.month gpp_gs = gpp [(doy & gt; = 60) & amp; (Du & lt; 274)] of W2005_gpp = [] for the top Anpikrenj (60,273,1): W2005_gpp.append (gpp [(doy == top)]. Sum ()) Year_diffference = [] # I suitable discretion Np.arange (0,213,1): Wars_vinimay .append ((W2003_gpp [i] -W2005_gpp [i])) relative_difference = [] I np.arange (0,213,1) in: relative_difference.append ((for (((W2003_gpp [I] -W2005_gpp [i]) / Dblu2005_jeepeepi [i]) * 100))  defines 

just ahead W2003 script is paused.

I am just a geography student and there is very little understanding of programming!

It looks like DF < / P>

  data columns (38 columns): Year 17520 non-zero value Month 17520 non-zero value DOY 17520 non-zero value of 17520 non-null value DTIME 17520 non-zero value GPP_f 17520 non- • Vacuum value GPP_f_grams_half_hourly 17520 non-standard values ​​dtypes: float64 (35), int64 (3)  

I would like a plot change% between each total value on the y-axis per day much Thanks!


Comments