Data Science at the Command Line by Jeroen Janssens

Data Science at the Command Line by Jeroen Janssens

Author:Jeroen Janssens [Jeroen Janssens]
Language: eng
Format: epub, pdf
Tags: Big Data
Publisher: O'Reilly Media, Inc.
Published: 2014-10-09T21:00:00+00:00


$ csvstack Iris-*.csv | sed -n '1p;49,54p' | csvlook |---------------+-------------+--------------+-------------+------------------| | sepal_length | sepal_width | petal_length | petal_width | species | |---------------+-------------+--------------+-------------+------------------| | 4.6 | 3.2 | 1.4 | 0.2 | Iris-setosa | | 5.3 | 3.7 | 1.5 | 0.2 | Iris-setosa | | 5.0 | 3.3 | 1.4 | 0.2 | Iris-setosa | | 7.0 | 3.2 | 4.7 | 1.4 | Iris-versicolor | | 6.4 | 3.2 | 4.5 | 1.5 | Iris-versicolor | | 6.9 | 3.1 | 4.9 | 1.5 | Iris-versicolor | |---------------+-------------+--------------+-------------+------------------|

If the species column did not exist, you could have created a new column based on the filename using csvstack:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.