i have two data csv
The first:
v1,v2,v3,....v100
-0.6662942866484324,-1.0799718232204516,1.843649258216222,....1.0950462520122528
0.7452152929104426,-0.6032845087431591,0.7041161138126079,....-0.41362931908053513
The second:
c1,c2,c3,c4,c5
4,1,0,0,1
14,2,2,0,13
when I combine using my code, the results are like this:
v1,v2,v3..v100,c1,c2,c3,c4,c5
0.0,1.0,2,...0,0,0,1,0,0
my code is like this..
import pandas as pd
vector = pd.read_csv('../data/vector_data.csv',encoding = "ISO-8859-1")
cluster= pd.read_csv('../data/data_cluster.csv',encoding = "ISO-8859-1")
data=vector.merge(cluster, left_on='v1', right_on='c1')
export_csv = data.to_csv (r'../data/merge_label.csv',index=False)
the result should be like this
v1,v2,v3..v100,c1,c2,c3,c4,c5
-0.6662942866484324,-1.0799718232204516,1.843649258216222,....1.0950462520122528,4,1,0,0,1
please help me...