DP6 / DP6/Marketing-Attribution-Models

[BUG]

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
369
Forks
87
Avg merge
12h 52m
Merged PRs (30d)
4

Description

**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
**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

**Expected behavior**
without mistake ion test data

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/83718390/218973560-603e4cc7-b536-431e-9164-f2098fcc490e.png)

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.