An optional parameter called check_series_type was created
- [x ] closes #48287
- [x ] [Tests added and passed]
- [ x] All [code checks passed]


An optional parameter called check_series_type was created in the assert_frame_equal function which solves the problem passed by issue #48287.

By default the parameter is set to True, however it is now  its possible to set it to False and skip series_type_check.

Example:

import pandas as pd

class Series(pd.Series):
    @property
    def _constructor( self ):
        return Series

    @property
    def _constructor_expanddim( self ):
        return DataFrame

class DataFrame(pd.DataFrame):
    @property
    def _constructor_sliced( self ):
        return Series

s1 = pd.Series( [0] )
s2 = Series( s1 )

pd.testing.assert_series_equal(s1, s2, check_series_type=False)

df1 = s1.to_frame()
df2 = s2.to_frame()

pd.testing.assert_frame_equal(df1, df2, check_frame_type=False,check_series_type=False)


> Hey, please always add tests

is there any documentation explaining the requested test patterns? You can check the contributor guide, testing is explained there as well

https://pandas.pydata.org/docs/dev/development/contributing.html Tests have been added @phofl  Still relevant? @phofl @jreback  This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.