Skip to content

Instantly share code, notes, and snippets.

@thepycoach
Created December 13, 2021 17:32
Show Gist options
  • Select an option

  • Save thepycoach/3e248fdfe9fa47a56179eac2fcac9cba to your computer and use it in GitHub Desktop.

Select an option

Save thepycoach/3e248fdfe9fa47a56179eac2fcac9cba to your computer and use it in GitHub Desktop.
# Added column new-column-uca5 to StudentsPerformance_csv
StudentsPerformance_csv.insert(8, 'new-column-uca5', 0)
# Renamed new-column-uca5 to average in StudentsPerformance_csv
StudentsPerformance_csv.rename(columns={'new-column-uca5': 'average'}, inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment