Skip to content

Instantly share code, notes, and snippets.

@trevismd
Created July 4, 2021 18:40
Show Gist options
  • Save trevismd/3d4d2ba4fda933e6a2c10c3fb3fe4d80 to your computer and use it in GitHub Desktop.
Save trevismd/3d4d2ba4fda933e6a2c10c3fb3fe4d80 to your computer and use it in GitHub Desktop.
Extracting arrays to analyse with scipy
robots = rfs.loc[(rfs.Subcategory == "Robots"), "Goal"].values
flight = rfs.loc[(rfs.Subcategory == "Flight"), "Goal"].values
sound = rfs.loc[(rfs.Subcategory == "Sound"), "Goal"].values
log_robots = np.log(robots)
log_flight = np.log(flight)
log_sound = np.log(sound)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment