Marketing-Attribution-Models icon indicating copy to clipboard operation
Marketing-Attribution-Models copied to clipboard

[BUG] AttributeError: 'MAM' object has no attribute 'DataFrame'

Open matheuspetlove opened this issue 2 years ago • 5 comments

As you can see below: image How can i solve this problem ?

matheuspetlove avatar Jun 07 '22 16:06 matheuspetlove

Hello Matheus,

You can use the self.group_by_channels_models method to check the aggregated results or the self.data_frame method to see the origin DataFrame.

andretocci avatar Jun 08 '22 13:06 andretocci

When self.data_frame , nothing happens: image

but self.group_by_channels_models is working fine!

matheuspetlove avatar Jun 08 '22 13:06 matheuspetlove

Try running the self.as_pd_dataframe() method before the self.data_frame attribute .

andretocci avatar Jun 08 '22 13:06 andretocci

When i try ur solution, this happens: image

Is there any limitation on the size of the df?

matheuspetlove avatar Jun 09 '22 20:06 matheuspetlove

Using the self.as_pd_dataframe() is the correct way to get the dataframe, we're going to update the docs. It appears to me that the limitation is in your machine rather than the library.

Nathandsn avatar Oct 13 '22 15:10 Nathandsn