Skip to content

dependencies (html5lib)  #171

Closed
Closed
@DaveBackus

Description

@DaveBackus

I suspect this is a naive suggestion, but here's the issue. I'm teaching a course to newbies (data + python) that uses the datareader a lot. We started with Anaconda, which includes pandas, then installed datareader with conda.

It didn't work because we didn't have html5lib installed. Which was easy to fix once we figured it out. But would it make sense to add a check? The code already gives a message referring to html5lib, but it's buried in the traceback. There are probably similar dependencies elsewhere that might get similar treatment.

The context here is that this is a terrific tool and I can see it used by lots of people, including many who are not experienced coders.

Specifics. This refers to the Yahoo options module.

import pandas_datareader.yahoo.options as yho

ticker = 'amzn'
otk = yho.Options(ticker)

cols = [0, 1, 2, 7]
ops = otk.get_all_data()[cols]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions