-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EHN: Cut duplicate codes via the factory design pattern #23
Comments
@Zeroto521 this feels like a great way to enable arbitrary dataframe extensions, perhaps even to other up-and-coming dataframe libraries. How would you like to move forward here? |
@ericmjl @Zeroto521 also, note that this is exactly the place where pyjviz dev require to insert some additional logic (wip on pyjviz-callbacks branch) -> pandas_flavor/pandas_flavor/register.py Line 38 in 69d45e1
|
This feature already finished in https://github.com/Zeroto521/my-data-toolkit/blob/main/dtoolkit/accessor/register.py PS: I need to focus on my work recently so that any open-source activities will get late. |
I saw there have a lot of duplicate codes. And they both have the same structure.
Maybe we could extract the same codes via the factory design pattern?
Duplicate codes:
The prototype of this idea.
It could work for pandas-like object, such as
pandas.DataFrame
,pandas.Series
,pandas.Index
,geopandas.GeoDataFrame
, andgeopandas.GeoSeries
.The text was updated successfully, but these errors were encountered: