import
pandas as pd
data1
=
pd.DataFrame({
'id'
: [
1
,
2
,
3
,
4
],
'name'
: [
'manoj'
,
'manoja'
,
'manoji'
,
'manij'
]},
index
=
[
'one'
,
'two'
,
'three'
,
'four'
])
data2
=
pd.DataFrame({
's_id'
: [
1
,
2
,
3
,
6
,
7
],
'marks'
: [
98
,
90
,
78
,
86
,
78
]},
index
=
[
'one'
,
'two'
,
'three'
,
'siz'
,
'seven'
])
print
(data1.join(data2))