Skip to content
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

[BUG] #83

Open
productanalyst2021 opened this issue Feb 15, 2023 · 0 comments
Open

[BUG] #83

productanalyst2021 opened this issue Feb 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@productanalyst2021
Copy link

Describe the bug
A clear and concise description of what the bug is.
try commend
attributions = MAM(random_df=True)
after that have mistake:
ValueError: can not merge DataFrame with instance of type <class 'pandas.core.series.Series'>
To Reproduce
Steps to reproduce the behavior:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

!pip install marketing_attribution_models
from marketing_attribution_models import MAM
attributions = MAM(random_df=True)
4. See error
~\Anaconda3\lib\site-packages\pandas\core\reshape\merge.py in init(self, left, right, how, on, left_on, right_on, axis, left_index, right_index, sort, suffixes, copy, indicator, validate)
525 if not isinstance(right, DataFrame):
526 raise ValueError('can not merge DataFrame with instance of '
--> 527 'type {right}'.format(right=type(right)))
528
529 if not is_bool(left_index):

ValueError: can not merge DataFrame with instance of type <class 'pandas.core.series.Series'>

Expected behavior
without mistake ion test data

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context
Add any other context about the problem here.

@productanalyst2021 productanalyst2021 added the bug Something isn't working label Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant