GithubHelp home page GithubHelp logo

Comments (1)

fabclmnt avatar fabclmnt commented on May 13, 2024

The .csv file is in the directory where you've installed the package.

There's a need to change the path from where the file is being loaded. In the meantime, you can use the dataset and apply your own preprocessing. Or run the following code locally.

stock_url = 'https://query1.finance.yahoo.com/v7/finance/download/GOOG?period1=1483228800&period2=1611446400&interval=1d&events=history&includeAdjustedClose=true'
request = req.get(stock_url)
url_content = request.content

file_path = os.path.join(os.path.dirname(os.path.join('..', os.path.dirname(__file__))), 'data')
stock_csv = open(os.path.join(file_path, 'stock.csv'), 'wb')
stock_csv.write(url_content)
# Reading the stock data
stock_df = pd.read_csv('../data/stock.csv')

try:
    stock_df = stock_df.set_index('Date').sort_index()
except:
    stock_df=stock_df
#Data transformations to be applied prior to be used with the synthesizer model
processed_data = real_data_loading(stock_df.values, seq_len=seq_len)

Sorry for the inconvenience.

from ydata-synthetic.

Related Issues (20)

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.