From 23482bd75d2bec8b6d1d1b0fa204a76a543d4dab Mon Sep 17 00:00:00 2001 From: "samuel.oranyeli" Date: Thu, 4 Jul 2024 18:59:22 +1000 Subject: [PATCH] fix docs --- janitor/functions/complete.py | 4 ++-- janitor/functions/expand_grid.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/janitor/functions/complete.py b/janitor/functions/complete.py index 5a53f8d38..eed4d1ac5 100644 --- a/janitor/functions/complete.py +++ b/janitor/functions/complete.py @@ -137,7 +137,7 @@ def complete( >>> df.complete( ... "group", - ... ("item_id", "item_name"), + ... ["item_id", "item_name"], ... fill_value={"value1": 0, "value2": 99}, ... sort=True ... ) @@ -155,7 +155,7 @@ def complete( by setting explicit to `False`: >>> df.complete( ... "group", - ... ("item_id", "item_name"), + ... ["item_id", "item_name"], ... fill_value={"value1": 0, "value2": 99}, ... explicit=False, ... sort=True diff --git a/janitor/functions/expand_grid.py b/janitor/functions/expand_grid.py index 3e64b9d63..c2b48de1b 100644 --- a/janitor/functions/expand_grid.py +++ b/janitor/functions/expand_grid.py @@ -273,7 +273,7 @@ def expand( Filter for missing observations: >>> combo = df.expand('type','size','year') >>> anti_join = df.merge(combo, how='right', indicator=True) - >>> anti_join.query("_merge=='right_only").drop(columns="_merge") + >>> anti_join.query("_merge=='right_only'").drop(columns="_merge") type year size 1 apple 2012 XS 2 apple 2011 XS