We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Do a fuzzy merge of two dataframes. A custom function could be used to determine if there is a match.
Here is an example how this might look like (this is actually a hallucination by ChatGPT!)
import pandas as pd
df1 = pd.DataFrame({'A': [1, 2], 'B': [3, 4]}) df2 = pd.DataFrame({'C': [5, 6], 'D': [7, 8]})
def my_function(x, y): return x + y
df = pd.merge(df1, df2, left_on='A', right_on='C', custom_func=my_function)
print(df)
I'm not aware of a simple alternative.
No response
The text was updated successfully, but these errors were encountered:
Thanks for the request. A similar request has been made in #8962 so closing in favor of that issue
Sorry, something went wrong.
No branches or pull requests
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
Do a fuzzy merge of two dataframes. A custom function could be used to determine if there is a match.
Feature Description
Here is an example how this might look like (this is actually a hallucination by ChatGPT!)
import pandas as pd
df1 = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
df2 = pd.DataFrame({'C': [5, 6], 'D': [7, 8]})
def my_function(x, y):
return x + y
df = pd.merge(df1, df2, left_on='A', right_on='C', custom_func=my_function)
print(df)
Alternative Solutions
I'm not aware of a simple alternative.
Additional Context
No response
The text was updated successfully, but these errors were encountered: