Skip to content

Convert pandas DataFrame to input for voting calculation methods.  #4

@andrew-octopus

Description

@andrew-octopus

Usage: Take a pandas DataFrame and convert it to a suitable format to run

Args: A Pandas Dataframe with

  • Index equal to the list of all voters (however they are indicated)
  • Columns for
    • Each TE Academy NFT that could be acquired, set to 0 or 1 depending on whether the owner has it.
    • Choice: the voter's choice (from the list of possble candidates)

This function will be used in conjunction with other methods for vote counting. This makes it possible to compare the results of different methods for the same underlying voter information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions