count if pandas series code example
Example: pandas check if series
type(x) is pd.DataFrame # NO
type(x) == pd.DataFrame # NO
isinstance(x, pd.DataFrame) # YES
type(x) is pd.DataFrame # NO
type(x) == pd.DataFrame # NO
isinstance(x, pd.DataFrame) # YES