import pandasas pd
import uuid
import os
import csv
df=pd.read_csv("G:/file/599_output.csv",encoding='utf-8')
#pd.read_csv('st_address_ck_statistis.sql',sep = '\t')
c=[]
length=df.shape[0]
for iin range(length):
uu=uuid.uuid4()
uu=str(uu)
uu=uu.replace("-","")
uu=uu.upper()
c.append(uu)
df["gid"]=c
lie=df['gid'].tolist()
print(len(lie))
print(df.shape)
for index,rowin df.iterrows():
row['gid']=row['gid']+"SSS"
# df.to_csv("F:/a.csv")
df['gid'] = df['gid'].map(lambda x: x+"sss")
print(df.head(2))
#单元区域
#os.chdir("D:\\deploy")
|