Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import panda as pd
  2.  
  3. data = pd.read_csv("fer2013.csv")
  4.  
  5. #-------------------------------------------------------------
  6. #Extract emotions 0. Anger, 3. Happy, 6. Neutral original file
  7. #And store in new csv file for first iteration
  8. #-------------------------------------------------------------
  9.  
  10. test = data.loc[data["emotion"].isin(['0', '3', '6'])
  11. dx = test.to_numpy()
  12.  
  13. test.to_csv('DataSplit.csv', sep='\t')
  14. print(test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement