plot.py 332 B

1234567891011121314
  1. import click
  2. import pandas as pd
  3. import matplotlib.pyplot as plt
  4. @click.command()
  5. @click.option("--csv", default="result.csv")
  6. def main(csv):
  7. df = pd.read_csv(csv, index_col="second")
  8. df.drop(["agressiveAvgFlying", "bothAvgFlying"], axis=1, inplace=True)
  9. df.plot()
  10. plt.show()
  11. if __name__ == "__main__":
  12. main()