https://*.com/questions/14808945/check-if-variable-is-dataframe
Use the built-in isinstance()
function.
import pandas as pd def f(var):
if isinstance(var, pd.DataFrame):
print "do stuff"
2024-02-27 17:37:51
https://*.com/questions/14808945/check-if-variable-is-dataframe
Use the built-in isinstance()
function.
import pandas as pd def f(var):
if isinstance(var, pd.DataFrame):
print "do stuff"