This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!zsh | |
# Duomenų rinkinys | |
# https://data.gov.lt/dataset/eismo-ivykiu-ivykusiu-lietuvos-respublikoje-kuriu-metu-zuvo-ir-ar-buvo-suzeisti-zmones-duomenys | |
# Struktūros aprašas | |
# https://github.com/atviriduomenys/manifest/blob/master/datasets/gov/pd/eiis.csv | |
git clone https://github.com/atviriduomenys/manifest.git | |
cd manifest/datasets/gov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!zsh | |
# https://data.gov.lt/datasets?q=&organization_id=132 | |
# Peržiūrime rinkinius naudodamiesi ADP Public API | |
http -b "https://data.gov.lt/public/api/1/action/package_search?q=organization_id:132" | jq ' | |
.result.results[] | { | |
title: .title, | |
structure: .extras[]? | select(.key == "structure") | first(.value), | |
resources: [.resources[]? | .url] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# Užsikraunam duomenis. | |
atvejai = pd.read_csv('AtvejaiIrMirtys.csv') | |
# Peržiūrim duomenų sudėtį. | |
atvejai.info() | |
atvejai.nunique() | |
atvejai['sex'].value_counts() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!zsh | |
# Inventorizacija | |
# ############### | |
# | |
# Katalogo (Partnerių) API | |
# ======================== | |
# | |
# https://httpie.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dateutil.parser | |
class LtParserInfo(dateutil.parser.parserinfo): | |
WEEKDAYS = [ | |
("Pr", "Pirmadienis"), | |
("An", "Antradienis"), | |
("Tr", "Trečiadienis"), | |
("Kv", "Ketvirtadienis"), | |
("Pn", "Penktadienis"), | |
("Št", "Šeštadienis"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import json | |
import urllib.parse | |
from operator import itemgetter | |
import click | |
import lxml.etree | |
import requests | |
import requests_cache | |
import tqdm |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder