BaşlayınÜcretsiz başlayın

Printing column headers with csvkit

There are many ways to preview the data within csvkit alone(e.g. csvlook, csvstat, etc). However, if all we want is to find the position and name of the columns in our data, it is easier to simply print a string of column headers. Let's print the column headers for the data file Spotify_MusicAttributes.csv.

Bu egzersiz, kursun bir parçasıdır

Data Processing in Shell

Kursa Göz Atın

Egzersiz talimatları

  • Print in console a list of column headers in the data file Spotify_MusicAttributes.csv using a csvkit command.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Check to confirm name and location of data file
ls

# Print a list of column headers in data file 
___ ___ Spotify_MusicAttributes.csv
Kodu Düzenle ve Çalıştır