Skip to content

Add session parameter to get_available_datasets #136

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

Closed
wants to merge 4 commits into from
Closed

Add session parameter to get_available_datasets #136

wants to merge 4 commits into from

Conversation

femtotrader
Copy link
Contributor

Should help #48

except ImportError:
raise ImportError("Please install lxml if you want to use the "
"get_datasets_famafrench function")

root = parse(_URL + 'data_library.html')
response = requests.get(_URL + 'data_library.html')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you have to do session.get(_URL...) in order to use the session?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are right... sorry!

PANDAS_0140 = False

def _init_session(session):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use the logic as current _BaseReader, and _BaseReader can use this definition.

https://github.com/pydata/pandas-datareader/blob/master/pandas_datareader/base.py#L57

@femtotrader
Copy link
Contributor Author

Yes I should do something like you did in WordBankReader

https://github.com/pydata/pandas-datareader/blob/master/pandas_datareader/wb.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants