biophysics_fittingexploration_from_seedpointRW_analysispandas_binby

pandas_binby

biophysics_fitting.exploration_from_seedpoint.RW_analysis.pandas_binby(df, c1, c2, binsize=0.01)

Bin a pandas dataframe by two columns.

Parameters:
  • df (pd.DataFrame) – the dataframe to bin

  • c1 (str) – the first column to bin by

  • c2 (str) – the second column to bin by

  • binsize (float) – the size of the bins

Returns:

the binned dataframe

Return type:

pd.DataFrame