QST: Distinguishing row and column slices in DataFrame subclass
- [X ] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.

- [ X] I have asked my usage related question on [StackOverflow](https://stackoverflow.com/questions/61246252/distinguish-column-and-row-slice-in-pandas-subclass).

---

Hi pandas devs,

What is the best way to distinguish whether a row or column was sliced in a DataFrame subclass? I am designing a subclass where row slices should return my custom Series/DF subclass, but columns are just vanilla pd.Series. In addition, I want non-slice calls to `_constructor` (e.g., `apply`) to simply return vanilla DataFrames. Is there a straightforward way to do this?

Thanks for a great package!