iT邦幫忙

鐵人檔案

2024 iThome 鐵人賽
回列表
Python

Python和R入門語法比較 系列

從print輸出開始整理起,包括讀檔、csv表格、資料型態、pandas、日期、文字處理、函數、爬蟲到matplotlib繪圖等等的python常見功能,對應R語言中的向量、ggplot...。
除了可以同時學習2門語言以外,每個單元會設計成環環相扣,順其自然地介紹需要記憶的語法。

參賽天數 13 天 | 共 13 篇文章 | 1 人訂閱 訂閱系列文 RSS系列文 團隊為你抓鯉魚
DAY 11

04 Python: pandas Series 數值資料 v R: 數值向量 [16th 鐵人 Day 11]

Python Series import pandas as pd 建立數列1 2 3 4 pd.Series([1,2,3,4]) 0 1...

2024-09-24 ‧ 由 carplee 分享
DAY 12

05 Python: Pandas Series 字串資料 v. R:文字向量 [16th 鐵人 Day 12]

Python Python的pandas套件底下,有屬於pandas的特別的 資料的格式 ,其中一種,稱作Series。以下示範Series的用法: impor...

2024-09-25 ‧ 由 carplee 分享
DAY 13

06 日期 in Python and R [16th 鐵人 Day 13]

下載song_rank.csv Python import pandas as pd with open('data/song_rank.csv') as f...

2024-09-26 ‧ 由 carplee 分享