#也就是说,reindex应该用作根据
已有的索引进行数据操作,
而不能用作创建新的索引。
“””


DataFrame的屬性:

DataFrame的屬性:

DataFrame的屬性:

DataFrame的屬性:

df.columns 與df.keys()同效果:

DataFrame的屬性:

DataFrame轉成ndarray
屬性使用.values #屬性不用() .values 結尾有s
方法使用.to_numpy() #方法要()
官方建議使用 DataFrame.to_numpy() 代替.values



推薦hahow線上學習python: https://igrape.net/30afN

![Python: matplotlib如何控制legend的位置? ax.legend(handles=[patch], loc=’upper left’, bbox_to_anchor=(6/10, 3/5) Python: matplotlib如何控制legend的位置? ax.legend(handles=[patch], loc=’upper left’, bbox_to_anchor=(6/10, 3/5)](https://i2.wp.com/savingking.com.tw/wp-content/uploads/2023/05/20230502163945_79.png?quality=90&zoom=2&ssl=1&resize=350%2C233)
![Python list[] dictionary{key: value},如何從兩個list,建立一個dictionary? Python list[] dictionary{key: value},如何從兩個list,建立一個dictionary?](https://i1.wp.com/savingking.com.tw/wp-content/uploads/2022/09/20220904074100_2.png?quality=90&zoom=2&ssl=1&resize=350%2C233)







近期留言