<reponame>daniele21/financial_anomaly_detection<filename>scripts/data/extract.py
from typing import Text

import pandas_datareader as pdr


def extract_data(ticker: Text,
                 start_date: Text,
                 end_date: Text):
    data = pdr.get_data_yahoo(ticker,
                              start=start_date,
                              end=end_date)
    return data

from typing import Text

import pandas_datareader as pdr


def extract_data(ticker: Text,
                 start_date: Text,
                 end_date: Text):
    data = pdr.get_data_yahoo(ticker,
                              start=start_date,
                              end=end_date)
    return data