Skip to content

Commit 08998bb

Browse files
committed
fix merge conflict'
2 parents ca4fe6f + 1d40e65 commit 08998bb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/stats/moments.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,8 @@ def _rolling_moment(arg, window, func, minp, axis=0, time_rule=None):
8484

8585
def _process_data_structure(arg, kill_inf=True):
8686
if isinstance(arg, DataFrame):
87-
if isinstance(arg, DataMatrix):
88-
return_hook = lambda v: DataMatrix(v, index=arg.index,
89-
columns=arg.columns)
90-
else:
91-
return_hook = lambda v: DataFrame(v, index=arg.index,
92-
columns=arg.columns)
87+
return_hook = lambda v: type(arg)(v, index=arg.index,
88+
columns=arg.columns)
9389
values = arg.values
9490
elif isinstance(arg, Series):
9591
values = arg.values

0 commit comments

Comments
 (0)