一些seaborn方法如JointPlotcreate new figures on each call。這使得不可能創建一個簡單的動畫,如matplotlib,其中對plt.cla()或plt.clf()的迭代調用允許在每次不關閉/打開窗口的情況下更新圖形的內容。 我目前看到的唯一的解決辦法是: for t in range(iterations):
# .. update your
image enclosd 我該如何讓所有數據顯示?現在孩子的情節被切斷 這裏是我的代碼: # since it is a column and not index we need to set axis to 1
titanic_df['Personstatus'] =
titanic_df[['Age','Sex']].apply(male_female_child,axis=1)
f