问题遇到的现象和发生背景
之前有运行过,隔了几天,就有接二连三的错误
df.head(10).style.format(format_dict).background_gradient(subset=['萼片长度', '萼片宽度','花瓣长度','花瓣宽度'], cmap='BuGn')
import matplotlib.pyplot as plt
plt.plot((df['花瓣长度'], df['花瓣宽度']))
之前有运行过,隔了几天,就有接二连三的错误
df.head(10).style.format(format_dict).background_gradient(subset=['萼片长度', '萼片宽度','花瓣长度','花瓣宽度'], cmap='BuGn')
import matplotlib.pyplot as plt
plt.plot((df['花瓣长度'], df['花瓣宽度']))
df[[‘花瓣长度’,'花瓣宽度']].plot()
试试这个吧