Code Monkey home page Code Monkey logo

Comments (6)

ClementPerroud avatar ClementPerroud commented on August 18, 2024

I suggest you to downgrade your gymnasium version to the one I used when I created the env

from gym-trading-env.

RitwikGhoshLives avatar RitwikGhoshLives commented on August 18, 2024

I have done it. I have downgraded the gymnasium version to 0.28.1. The user warning error is not coming any more. how ever the web page is still showing blank.
Following error I am getting in spyder
Screenshot 2023-09-07 190558

from gym-trading-env.

sebnapi avatar sebnapi commented on August 18, 2024

I have done it. I have downgraded the gymnasium version to 0.28.1. The user warning error is not coming any more. how ever the web page is still showing blank. Following error I am getting in spyder Screenshot 2023-09-07 190558

Your dataframe index obviously isn't a Timestamp index.

from gym-trading-env.

RitwikGhoshLives avatar RitwikGhoshLives commented on August 18, 2024

No my data frame index is in timestamps cause I am getting the result like market return portfolio return. Only the renderer is not working.
265762786-77c38aff-cab9-4a75-8d1b-fb2fbd87a038

from gym-trading-env.

sebnapi avatar sebnapi commented on August 18, 2024

No my data frame index is in timestamps cause I am getting the result like market return portfolio return. Only the renderer is not working. 265762786-77c38aff-cab9-4a75-8d1b-fb2fbd87a038

I tried the renderer yesterday and it works! You have to debug it by yourself, what @ClementPerroud is calling there is this function: https://pandas.pydata.org/docs/reference/api/pandas.Timestamp.strftime.html#pandas.Timestamp.strftime So if your dataframe has a timestamp index it would be definitely available.

from gym-trading-env.

sebnapi avatar sebnapi commented on August 18, 2024

@RitwikGhoshLives I ran into the same issue, I think it depends what kind of Index pandas creates. I replaced the line with:

df['date_str'] = [d.strftime("%Y-%m-%d %H:%M") for d in df.index]

This way it works always.

from gym-trading-env.

Related Issues (16)

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.