Skip to content

nomoreid/csv2dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

csv2dict

read csv and make dictionary
usage :

  1. ret = CSV2Dict.do('unit.csv','unit_id') # unique key csv , filename 'unit.csv' , key name is 'unit_id'
  2. unit_level = CSV2Dict.do_multi_key('upgrade.csv',('unit_id','level')) # multi key csv , key must tuple.
  3. if you want make key int , set make_key_int=True
  4. if header is [] , CSV's first row is header , you can fill custom header , set header=['foo','xxx','aaa']
  5. you can make custom do function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages