Skip to content

Instantly share code, notes, and snippets.

@michelkana
Created October 26, 2021 12:48
Show Gist options
  • Save michelkana/964367ba1526893624b1ee3719759c61 to your computer and use it in GitHub Desktop.
Save michelkana/964367ba1526893624b1ee3719759c61 to your computer and use it in GitHub Desktop.
import pandas as pd
df = pd.read_csv('https://gist.githubusercontent.com/michelkana/99a77e7dc656406025f0c09823dfc7b6/raw/74fdea4c4dbcb51141838d9d7adcd7ed83c936bd/Fortnite_players_stats.csv', index_col=0)
df = df.reset_index()
df['Minutes Played'] = df['Solo minutesPlayed'] + df['Duos minutesPlayed'] +
df['Trios minutesPlayed'] + df['Squads minutesPlayed'] +
df['LTM minutesPlayed']
df['Score'] = df['Solo score'] + df['Duos score'] +
df['Trios score'] + df['Squads score'] +
df['LTM score']
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment