Home > other >  For help, how to deal with the CSV file
For help, how to deal with the CSV file

Time:09-25

Want to each other every row in the CSV file to calculate kl divergence, small white one, all failed to understand all that trouble,,, help ohoo

CodePudding user response:

https://blog.csdn.net/qtlyx/article/details/51834684

CodePudding user response:

reference 1st floor weixin_45903952 response:
https://blog.csdn.net/qtlyx/article/details/51834684

I know kl divergence formula, but don't know how to calculate the CSV file line by line

CodePudding user response:

Format unification, can consider to use pandas read_csv read again the dataframe operation,

Want to simple point,
F1=open (' 1. CSV)
Flist=f1. Readlines ()

Read flist this way, then the split processing, baidu, everywhere, all the code

CodePudding user response:

refer to the second floor Aeira, (? Omega? Response:
Quote: refer to 1st floor weixin_45903952 response:

https://blog.csdn.net/qtlyx/article/details/51834684

I know kl divergence formula, but don't know how to calculate the CSV file line by line


With open (" DDF. CSV ", r)
Can read ah, look at the inside of the CSV data is to use a space, or use separate
  • Related