BarChartRace.calculate_ranks

BarChartRace.calculate_ranks(df: pandas.core.frame.DataFrame) → pandas.core.frame.DataFrame[source]

Calculate expanded dataframe to match length of animation

Returns

df_values contains interpolated values, df_rank contains interpolated rank

Return type

typing.Tuple[pd.DataFrame,pd.DataFrame]