20140817_12_HX400V_宜蘭國際童玩節_泰國 by 儲蓄保險王 · 2014-08-30 20140817_12_HX400V_宜蘭國際童玩節_泰國 http://youtu.be/jIPjwCdsSjk 相關文章Python: 如何用seaborn (sns) 套件繪製具有多個子圖的折線圖? sns.relplot(data=tips, x=’total_bill’, y=’tip’, hue=’sex’, col=’day’, row=’time’, facet_kws={‘margin_titles’: True}, height=3, aspect=1.2).set_axis_labels(‘Total Bill’, ‘Tip’)Python如何輸出多分頁的xlsx? with pandas .ExcelWriter ("output.xlsx") as writer:Python物件導向 (Object-oriented programming,簡稱OOP): 類別變數 __class__.PI ; 物件變數 self.PI ; 類別方法 @classmethod cls.PI ; 靜態方法 @staticmethodPython 具有強制特性的函式庫規格化; from multipledispatch import dispatchPython: Visual Studio Code (VS code) & Spyder 如何切換不同版本的Python直譯器( Interpreter ), VS code: 齒輪>命令選擇區(Ctrl + Shift +P) > Python: Select Interpreter #Spyder console: !where python #知道自己安裝的python路徑Python: list的加法跟乘法(減法跟除法不行), list(n)*m #有m個元素n, ndarray.tolist()可以將array轉為listPython: 如何求整個 pandas.DataFrame 中的最大值? pandas.DataFrame .max().max() ; 如何求最大值的index, columns? numpy.where(condition, [x, y, ]/) ; condition為一 bool_mask正則表示法(Regular Expression): pattern = re.compile(r'\d+') #re.Pattern ; pattern.match() ; pattern.search() ; pattern.findall() ; pattern.finditer() ; pattern.sub() 如何使用?Python: Matplotlib 中如何將圖例放置在繪圖之外? plt.legend(bbox_to_anchor=(1.05, 1.0), loc='upper left') ; plt.tight_layout() ; 如何防止儲存的檔案圖例被裁切? plt.savefig('example.png', dpi=300, format='png', bbox_extra_artists=(lg,), bbox_inches='tight')
近期留言