bis-med-it / gingado

A machine learning library for economics and finance
https://bis-med-it.github.io/gingado/
Apache License 2.0
12 stars 4 forks source link

using load_CB_speeches function #19

Closed Tevdokimova closed 2 months ago

Tevdokimova commented 2 months ago

I have tried to access central banks' speeches via gingado.

I used the following code for that: pip install gingado import gingado speeches = load_CB_speeches(2020) speeches.head()

And got an error "name 'load_CB_speeches' is not defined"

I managed to use the function when I copied the full code from the following link into the python cell https://github.com/bis-med-it/gingado/blob/main/gingado/datasets.py

What could cause the issue?

dkgaraujo commented 2 months ago

Many thanks @Tevdokimova for filing this issue.

Please try the following code:

from gingado.datasets import load_CB_speeches
speeches = load_CB_speeches(2020)
speeches.head()