简体   繁体   中英

How can i overcome issue on column name of the given data frame in Python pandas and matplotlib

I have been trying to extract some data from a dataframe, where i am came with this issue. while i am trying to plot a line plot using matplotlib.plot(column_name) The dataframe had the column name " Ladder score" But this cannot excuted in the matplotlib plot function, we can't use space between words. But the given column in dataframe put column name like that. How can i overcome this issue.

image of error: https://drive.google.com/file/d/1LhKnZ9THGBDLryT3rwOxnnKixr4knDIE/view?usp=sharing

只需使用

plt.plot(b[" Ladder score"])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM