Axes.boxplot() got an unexpected keyword argument 'colums'
时间: 2023-09-30 15:12:33 浏览: 113
matlab开发-PLOT2AXES.zip.zip
The error message "Axes.boxplot() got an unexpected keyword argument 'colums'" indicates that you have a typo in your code. The correct parameter name for specifying the columns in a boxplot is "columns" (without the extra "u"). Try correcting the parameter name and see if the error disappears. Here is an example:
```
import pandas as pd
import matplotlib.pyplot as plt
# create some sample data
data = pd.DataFrame({
'A': [1, 2, 3, 4, 5],
'B': [2, 4, 6, 8, 10],
'C': [3, 6, 9, 12, 15]
})
# create a boxplot with columns A and B
plt.boxplot(data[['A', 'B']].values)
plt.show()
```
阅读全文