I use dask in my project and recently ran into a weird problem - I need differentiate between dask and pandas dataframes in some places so I use the following if
import dask.dataframe as dd
if isinstance(df, dd.DataFrame):
#some specific code
but it doesn't always work. I investigated the case and turned out the real type of df is dd.core.DataFrame. What's then the difference between them two? Why are they interchangeable in many cases? And how correctly to check the type of dask dataframe?