AttributeError: ‘NoneType’ object has no attribute ‘columns’ 出现这个错误是因为在此函数前面的一个函数没有写返回值 忘记写返回值了 ,加上就好 了