title: How to determine if a dataframe is Pandas or Spark?
body: <p>I pass a dataframe to a function. Sometimes it is Pandas dataframe, and sometimes it is a Spark dataframe. My function will need to act accordingly. Is there a simple method, such as df.isPandas(), to determine if a dataframe (received as "df") is a Pandas dataframe or a Spark dataframe? Thanks in advance.</p>