diff --git a/docs/_build/doctrees/changelog.doctree b/docs/_build/doctrees/changelog.doctree index 8f5064f..1ea8895 100644 Binary files a/docs/_build/doctrees/changelog.doctree and b/docs/_build/doctrees/changelog.doctree differ diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle index bfc87aa..23964c1 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree index 5172df7..1098426 100644 Binary files a/docs/_build/doctrees/index.doctree and b/docs/_build/doctrees/index.doctree differ diff --git a/docs/_build/html/_modules/tidypandas/_unexported_utils.html b/docs/_build/html/_modules/tidypandas/_unexported_utils.html index a01b6e9..e01e971 100644 --- a/docs/_build/html/_modules/tidypandas/_unexported_utils.html +++ b/docs/_build/html/_modules/tidypandas/_unexported_utils.html @@ -175,9 +175,13 @@

Source code for tidypandas._unexported_utils

[docs]def _is_kwargable(func):
     res = False
-    spec = inspect.getfullargspec(func)
-    if spec.varkw is not None:
-        res = True
+    assert callable(func), "arg 'func' should be callable"
+    try:
+        spec = inspect.getfullargspec(func)
+        if spec.varkw is not None:
+            res = True
+    except TypeError as e:
+        pass # res is False
     return res
[docs]def _is_valid_colname(string): diff --git a/docs/_build/html/_modules/tidypandas/tidyframe_class.html b/docs/_build/html/_modules/tidypandas/tidyframe_class.html index 03469bf..24b1f1b 100644 --- a/docs/_build/html/_modules/tidypandas/tidyframe_class.html +++ b/docs/_build/html/_modules/tidypandas/tidyframe_class.html @@ -1838,11 +1838,10 @@

Source code for tidypandas.tidyframe_class

                                                  )
                                    )
                 res = res.relocate(self.colnames)
-        
-        if isinstance(res, pd.DataFrame):
-            if query is None and mask is not None:
-                res = self.__data.loc[mask, :]
+        else: #query is None and mask is not None:
+            res = self.__data.loc[mask, :]
             
+        if isinstance(res, pd.DataFrame):
             res = res.reset_index(drop = True)     
             return tidyframe(res, check = False)
         else:
@@ -2900,7 +2899,7 @@ 

Source code for tidypandas.tidyframe_class

             else:
                 rowid_name = _generate_new_string(self.colnames)
                 group_mapper = (self.distinct(by)
-                                    .add_row_number(rowid_name)
+                                    .add_row_number(name=rowid_name)
                                     .to_pandas()
                                     )
                 res = (self.__data
diff --git a/docs/_build/html/changelog.html b/docs/_build/html/changelog.html
index ef08e4e..5026fe4 100644
--- a/docs/_build/html/changelog.html
+++ b/docs/_build/html/changelog.html
@@ -160,6 +160,11 @@