cleanData.py 463 B

12345678910111213
  1. import pandas as pd
  2. data = pd.read_csv("data.csv")
  3. data = data.query("not student_id in [3375,3486,3382,3369,1767,1760,3]")
  4. data.to_csv("clean_data.csv")
  5. data = pd.read_csv("cond_structure.csv")
  6. data = data.query("not student_id in [3375,3486,3382,3369,1767,1760,3]")
  7. data.to_csv("clean_cond_structure.csv")
  8. data = pd.read_csv("for_structure.csv")
  9. data = data.query("not student_id in [3375,3486,3382,3369,1767,1760,3]")
  10. data.to_csv("clean_for_structure.csv")