team-emotion / emotion_recognition

Emotion Recognition from Physical Signals with Deep Learning
GNU General Public License v3.0
0 stars 5 forks source link

to_csv() writes the values to the .csv file with some additional fractions #2

Closed ozanyurtsever closed 5 years ago

ozanyurtsever commented 5 years ago

Some values in the splitted .csv file are displayed with additional fractional numbers. Example; image

Script should be fixed to solve this problem.

ozanyurtsever commented 5 years ago

It is solved by adding an argument to the to.csv() method.

emotion.to_csv(file_name,encoding='utf-8', index = False, float_format = "%.4f")

It is solved in stackoverflow question;