Pandas version checks
Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.api.interchange.from_dataframe.html
Documentation problem
The function uses deprecated DataFrameXchg, but it is not declared to be deprecated itself. This issue is found in pandas-dev/pandas-stubs#1481.
Suggested fix for documentation
I guess the function will share the same deprecation plan with DataFrameXchg.