np.savetxt downloads a format file ... (formatting problem)

Asked

Viewed 13 times

0

I am editing a code that groups some values from HTML Donwloads and stores them in a list called column_b. Along with column_a (a list of values already defined), I want to do a csv and download it.

Created Lists

column_a = [user1,user2,user3,user4,user5,user6,user7,user8,user9,user10,user11,user12,user13,user14,user15,user16,user17]


column_b = [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,r]

Grouping the lists into a file by np.savetxt:

archive = np.savetxt('instaproject.csv',np.c_[column_a,column_b], delimiter = '@', fmt = '%s %s')

from google.colab import files

files.download('instaproject.csv')

I am finding this np.savetxt formatting very doubtful, but I didn’t find anything to diverge from it in the numpy library directory. The intention is to download csv with a list in each column, without header even.

Does the problem even lie in formatting?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.