if i >= length and i > 2:
j=j+1
print i
print j
#line.show()
second="newdf{}" .format(j +1)
first="newdf{}" .format(j)
third="newdf{}" .format(j +2)
print first
print second
print third
# newdf1.show()
print "one"
#if (line == "/MTDSumOfCustomerInitiatedTrxn"):
#first="enhanced_df{}" .format(i -1)
#print first
#first.show()
#final=enhanced_df{}.join(enhanced_df{},'ENT_CUST_ID','outer') .format(i,i -1)
#stat="{},{}" .format(first,second)
#print stat
b="prevDf=GenericFunctions.enhanced_customer({},{},'ENT_CUST_ID')" .format(second,first)
print b
exec(b)
prevDf.show(i)
c= "Finaldf=GenericFunctions.enhanced_customer(prevDf,{},'ENT_CUST_ID')" .format(third)
例如:我有5个df(df1,df2,df3,df4,df5)。我应该能够将df1和df2连接起来并存储在prevdf中,然后我应该能够将prevdf和df3连接起来,这个连接的结果是df4,以此类推,如果我有3个数据帧,我可以连接,但是不能连接df4。你知道吗
在这方面的任何帮助都将不胜感激。你知道吗
我试着用自定义项。只需妥善处理列名。你知道吗
相关问题 更多 >
编程相关推荐