Skip to content

Commit

Permalink
Added layout for Pandas based restat
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightara committed Sep 26, 2019
1 parent 8941171 commit 4825056
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 228 deletions.
180 changes: 0 additions & 180 deletions bin/migrate_encounter.py

This file was deleted.

11 changes: 8 additions & 3 deletions raidar/management/commands/restat.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,14 @@ def _update_area(era, area):
for player in encounter.encounter_data.encounterplayer_set.all():
raw_data.append(_generate_player_data(player, phase, phase_duration))
# Create pandas DataFrame
data = pandas.DataFrame(raw_data)
# TODO: Filter and store stats with Pandas.
# TODO: Test whether Pandas can replace manual percentile calculations.
frame = pandas.DataFrame(raw_data)
for arch, arch_frame in frame.groupby("archetype"):
for prof, prof_frame in arch_frame.groupby("profession"):
for elite, elite_frame in prof_frame.groupby("elite"):
# TODO: Store build data
pass
# TODO: Store archetype data
# TODO: Store "All" data


def _update_users(era, user):
Expand Down
45 changes: 0 additions & 45 deletions scratch.py

This file was deleted.

0 comments on commit 4825056

Please sign in to comment.