從print輸出開始整理起,包括讀檔、csv表格、資料型態、pandas、日期、文字處理、函數、爬蟲到matplotlib繪圖等等的python常見功能,對應R語言中的向量、ggplot...。
除了可以同時學習2門語言以外,每個單元會設計成環環相扣,順其自然地介紹需要記憶的語法。
Python Series import pandas as pd 建立數列1 2 3 4 pd.Series([1,2,3,4]) 0 1...
Python Python的pandas套件底下,有屬於pandas的特別的 資料的格式 ,其中一種,稱作Series。以下示範Series的用法: impor...
下載song_rank.csv Python import pandas as pd with open('data/song_rank.csv') as f...