@@ -4153,7 +4153,8 @@ def align(self, other, join='outer', axis=None, level=None, copy=True,
4153
4153
# self
4154
4154
cons = self ._constructor_expanddim
4155
4155
df = cons (dict ((c , self ) for c in other .columns ),
4156
- ** other ._construct_axes_dict ())
4156
+ ** self ._construct_axes_dict (
4157
+ ** other ._construct_axes_dict (axes = ['columns' ])))
4157
4158
return df ._align_frame (other , join = join , axis = axis ,
4158
4159
level = level , copy = copy ,
4159
4160
fill_value = fill_value , method = method ,
@@ -4163,7 +4164,8 @@ def align(self, other, join='outer', axis=None, level=None, copy=True,
4163
4164
# other
4164
4165
cons = other ._constructor_expanddim
4165
4166
df = cons (dict ((c , other ) for c in self .columns ),
4166
- ** self ._construct_axes_dict ())
4167
+ ** other ._construct_axes_dict (
4168
+ ** self ._construct_axes_dict (axes = ['columns' ])))
4167
4169
return self ._align_frame (df , join = join , axis = axis , level = level ,
4168
4170
copy = copy , fill_value = fill_value ,
4169
4171
method = method , limit = limit ,
0 commit comments