concatenating two dataframes 2c and then finding the maximum value

Solutions on MaxInterview for concatenating two dataframes 2c and then finding the maximum value by the best coders in the world

showing results for - "concatenating two dataframes 2c and then finding the maximum value"
Julia
01 Jun 2016
1from pandas import DataFrame 
2
3Data1 = {'Set1': [55,22,11,77,33]} 
4df1 = DataFrame(Data1, columns= ['Set1']) 
5
6Data2 = {'Set2': [23,45,21,73,48]} 
7df2 = DataFrame(Data2, columns= ['Set2'])
8
9Concatenated = df1['Set1'].map(str) + df2['Set2'].map(str)
10
11df_combined = DataFrame(Concatenated, columns=['Combined Values'])
12max1 = df_combined['Combined Values'].max()
13
14print (max1)
15