TypeError: DataFrame.__init__() got an unexpected keyword argument 'label'
时间: 2023-10-04 20:05:12 浏览: 526
第十一天 04魔法方法【千锋Python人工智能学院】1
This error message suggests that you are trying to pass an unsupported argument to the DataFrame constructor. Specifically, you are using the 'label' argument, which is not a valid argument for the DataFrame class.
To resolve this error, you should check the documentation for the DataFrame class and make sure that you are using the correct arguments. If you are not sure which arguments to use, you can try creating a simple DataFrame with default arguments to see how it works. Then, you can modify the arguments to fit your specific use case.
阅读全文