開始使用免費開始

使用 csvkit 依列過濾資料

現在該動手練習,用 -m 依照「完全相同」的列值來過濾資料。無論是文字或數值,csvgrep 都能依這些值來幫你篩選。

本練習屬於課程

在 Shell 中進行資料處理

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Print a list of column headers in the data 
csvcut -n Spotify_MusicAttributes.csv

# Filter for row(s) where track_id = 118GQ70Sp6pMqn6w1oKuki
___ -c "track_id" -m ___ Spotify_MusicAttributes.csv
編輯並執行程式碼