From f21dc32e28b4452d1220777062086b3391132356 Mon Sep 17 00:00:00 2001 From: Sean Malloy Date: Thu, 1 Dec 2022 15:25:57 -0800 Subject: [PATCH 1/3] feat: adding to the function docs that transform function parameter can take a string argument --- pandas/core/groupby/groupby.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 497e0ef724373..c73a2d40a33e1 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -399,7 +399,7 @@ class providing the base-class of operations. Parameters ---------- -f : function +f : function, str Function to apply to each group. See the Notes section below for requirements. Can also accept a Numba JIT function with From 7401c9ae167da20f2ac9ca53b82ea6d49d21d3b8 Mon Sep 17 00:00:00 2001 From: Sean Malloy Date: Thu, 1 Dec 2022 17:02:25 -0800 Subject: [PATCH 2/3] fix: removing okwarning from docs --- doc/source/user_guide/scale.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst index 129f43dd36930..a974af4ffe1c5 100644 --- a/doc/source/user_guide/scale.rst +++ b/doc/source/user_guide/scale.rst @@ -257,7 +257,6 @@ We'll import ``dask.dataframe`` and notice that the API feels similar to pandas. We can use Dask's ``read_parquet`` function, but provide a globstring of files to read in. .. ipython:: python - :okwarning: import dask.dataframe as dd @@ -287,7 +286,6 @@ column names and dtypes. That's because Dask hasn't actually read the data yet. Rather than executing immediately, doing operations build up a **task graph**. .. ipython:: python - :okwarning: ddf ddf["name"] @@ -346,7 +344,6 @@ known automatically. In this case, since we created the parquet files manually, we need to supply the divisions manually. .. ipython:: python - :okwarning: N = 12 starts = [f"20{i:>02d}-01-01" for i in range(N)] @@ -359,7 +356,6 @@ we need to supply the divisions manually. Now we can do things like fast random access with ``.loc``. .. ipython:: python - :okwarning: ddf.loc["2002-01-01 12:01":"2002-01-01 12:05"].compute() @@ -373,7 +369,6 @@ results will fit in memory, so we can safely call ``compute`` without running out of memory. At that point it's just a regular pandas object. .. ipython:: python - :okwarning: @savefig dask_resample.png ddf[["x", "y"]].resample("1D").mean().cumsum().compute().plot() From a08561b3f6f0b266add97871c2b5a1f7fb08c247 Mon Sep 17 00:00:00 2001 From: Sean Malloy Date: Thu, 1 Dec 2022 17:04:00 -0800 Subject: [PATCH 3/3] fix: reverting a change meant for another PR --- pandas/core/groupby/groupby.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index c73a2d40a33e1..497e0ef724373 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -399,7 +399,7 @@ class providing the base-class of operations. Parameters ---------- -f : function, str +f : function Function to apply to each group. See the Notes section below for requirements. Can also accept a Numba JIT function with