AlloViz.AlloViz.Elements.Edges._agg_examples_doc

Edges._agg_examples_doc = '\nExamples\n--------\n>>> df = pd.DataFrame([[1, 2, 3],\n...                    [4, 5, 6],\n...                    [7, 8, 9],\n...                    [np.nan, np.nan, np.nan]],\n...                   columns=[\'A\', \'B\', \'C\'])\n\nAggregate these functions over the rows.\n\n>>> df.agg([\'sum\', \'min\'])\n        A     B     C\nsum  12.0  15.0  18.0\nmin   1.0   2.0   3.0\n\nDifferent aggregations per column.\n\n>>> df.agg({\'A\' : [\'sum\', \'min\'], \'B\' : [\'min\', \'max\']})\n        A    B\nsum  12.0  NaN\nmin   1.0  2.0\nmax   NaN  8.0\n\nAggregate different functions over the columns and rename the index of the resulting\nDataFrame.\n\n>>> df.agg(x=(\'A\', \'max\'), y=(\'B\', \'min\'), z=(\'C\', \'mean\'))\n     A    B    C\nx  7.0  NaN  NaN\ny  NaN  2.0  NaN\nz  NaN  NaN  6.0\n\nAggregate over the columns.\n\n>>> df.agg("mean", axis="columns")\n0    2.0\n1    5.0\n2    8.0\n3    NaN\ndtype: float64\n'