-
This command below is to download file
weather_data.xlsx
from url below and the file will saved into folderdata
wget -P data https://github.com/labusiam/dataset/raw/main/weather_data.xlsx
-
This command below is to convert sheet
weather_2014
andweather_2015
inweather_data.xlsx
into 2 file csvweather_2014.csv
andweather_2015.csv
insidedata
folderin2csv data/weather_data.xlsx --sheet "weather_2014" > data/weather_2014.csv
in2csv data/weather_data.xlsx --sheet "weather_2015" > data/weather_2015.csv
-
This command below is to merge the seperate csv file from number 2
weather_2014.csv
andweather_2015.csv
into 1 file calledweather.csv
insidedata
folder. and remove file excelweather_data.xlsx
fromdata
folder.csvstack data/weather_2014.csv data/weather_2015.csv > data/weather.csv | rm data/weather_data.xlsx
-
This command below is to get 30% sampling data from file
weather.csv
and save them into file calledsample_weather.csv
cat data/weather.csv | sample -r 0.3 > data/sample_weather.csv
-
Notifications
You must be signed in to change notification settings - Fork 0
rickisubagya/sampling_data
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Learn about shell, bash and git
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published