Giter VIP home page Giter VIP logo

Comments (2)

lekro avatar lekro commented on August 15, 2024

We have a few options to accomplish this.

  • Add another column to each dataframe for guild
  • Change match_history and user_status to two Python dicts from int -> pandas.DataFrame.
    • This might be the easiest option of all. We will simply have to ensure that the dataframes exist
      for the desired guild, and then we can reference them with self.players[guild] or self.events[guild].
    • This will also mean that we will have to think of a proper naming scheme for the pickle files.
      I am thinking they should be GUILD-players.pickle and GUILD-events.pickle and they should
      go in some dir which is configurable in the global configuration.

from elosensei.

lekro avatar lekro commented on August 15, 2024

On second thought, the players and events dataframes can be simply loaded from listing the contents
of the data directory. This can be all done at init time. But if a particular guild doesn't have a set of dataframes, that has to be done at runtime.

We can have a dict of guild -> tuples instead, where tuple is (lock, events, users)? But tuples are immutable so we'd have to make a new tuple when saving things.

from elosensei.

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.