判断变量是否是DataFrame 或者 Series

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"
 
上一篇:git diff ^M的消除


下一篇:django rest framework权限和认证