pwwang

Results 72 comments of pwwang

`@overload` requires the function to have the same definition. For the case of `nameof`, we'd need to call `nameof([var1, var2])` for multiple names, which is not what I wanted it...

~~Probably https://github.com/wesselb/plum is a good idea?~~

After some experiments, the following works: ```python @overload def nameof( var: Any, more_var: Any, /, # Tuple[str, ...]: ... @overload def nameof( var: Any, ) -> str: ... def nameof(...

I had the same issue, and here is a wrapper to do it: ```bash #!/usr/bin/env bash # run the command and capture the stdout out=$(command $@) echo "$out" if [[...

`group_map()` family has the same issue.

This is also one of the reasons why [`datar`](https://github.com/pwwang/datar) implements its own [`DataFrameGroupBy`](https://github.com/pwwang/datar/blob/4a22c68d88916b176d2db34781d5c37aa2521810/datar/core/grouped.py#L15), which is actually a subclass of pandas' `DataFrame`. The idea behind is borrowed from `dplyr`. The `grouped_df`...

One more thing about `rowwise` data frame that I noticed with `dplyr`. Extra variables are allowed to be passed to `rowwise(...)`. These columns/variables will then become grouping variables when the...

This is cool. Also want to implement it with [datar](https://github.com/pwwang/datar).

I've written a post about this, see if it helps: https://pwwang.github.io/datar-blog/showing_dtypes.html

This feature is now implemented as an independent package: https://github.com/pwwang/pdtypes I guess this issue can be closed.