Guest User

Untitled

a guest
Oct 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. # pandas read csv file
  2. # 读取csv文件
  3.  
  4. frame = pd.read_csv(filename)
  5. # 读取第n行的数据
  6. img_name = frame.iloc[n, 0]
  7. label = frame.iloc[n, 1]
  8. label = label.astype('float')
Add Comment
Please, Sign In to add comment