2021年3月9日星期二

Store Results of an For Loop in Julia

i'm totally new to julia but i got stuck with the issue of storing results of a loop. I have several csv-files that are UTF-16 but i need to encode them to UTF-8. Therefore i thought i would loop them and afterwards i would like to put them all together in one DataFrame

This is my approach so far...

filelist = readdir("C:\\Users\\cd\\Documents\\Data\\Generation")

for i in filelist      encoded_csv = open("C:\\Users\\cd\\Documents\\Data\\Generation\\"*i,enc"UTF-16")    end  

I would appreciate any help i could get :) Thank you very much!

https://stackoverflow.com/questions/66551792/store-results-of-an-for-loop-in-julia March 10, 2021 at 01:21AM

没有评论:

发表评论