Giter VIP home page Giter VIP logo

hands-on-data-science-for-marketing's Issues

Data folder

Hi There,

Both in Github and on packt the data files are missing. Do you have a folder where these are, rather than having to download each of them and place them in the right folders relative to the notebooks?

Thanks

Chapter 6 Cell 27has error

Hello

In Chapter 6 Product Recommendations,
Cell # 27 is giving error shown below:

items_bought_by_A = set(customer_item_matrix.loc[12350.0].iloc[
customer_item_matrix.loc[12350.0].nonzero()
].index)
items_bought_by_A

AttributeError Traceback (most recent call last)
in
1 items_bought_by_A = set(customer_item_matrix.loc[12350.0].iloc[
----> 2 customer_item_matrix.loc[12350.0].nonzero()
3 ].index)
4 items_bought_by_A

C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\generic.py in getattr(self, name)
5128 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5129 return self[name]
-> 5130 return object.getattribute(self, name)
5131
5132 def setattr(self, name: str, value) -> None:

AttributeError: 'Series' object has no attribute 'nonzero'

Please fix this error and upload fixed Jupyter notebook to this book's github webpage.

Thank you,
SSJ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.