ENH: replace some usages of DataFrame to more generic self._constructor. #2865