direction = array[1] - array[0] ### Ex: 4-2 = 2 so we know the direction is increasing. ### Ex: 2-4 = -2 so we know the direction is decreasing. for i in range(2, len ...
I want to use pandas.Series.value_counts() or pandas.DataFrame.groupby([a_col]).size() to get frequency counts; but I also want the percentages in one go. pandas.Series.value_counts() has a ...