{"repo":"andrewtavis/wikirepo","free":true,"listed":false,"github":"https://github.com/andrewtavis/wikirepo","clone":"git clone https://github.com/andrewtavis/wikirepo.git","description":"Python based Wikidata framework for easy dataframe extraction","language":"Python","stars":45,"topics":["wikidata","open-source","social-sciences","statistics","data-science","repository","wikipedia","analytics","political-science","demography"],"license":"BSD-3-Clause","category":"analytics","readme_excerpt":"Python based Wikidata framework for easy dataframe extraction wikirepo is a Python package that provides a framework to easily source and leverage standardized Wikidata information. The goal is to create an intuitive interface so that Wikidata can function as a common read-write repository for public statistics. See the documentation for a full outline of the package including usage and available data. Contents - Installation - Data - Query Data - Upload Data (WIP) - Maps (WIP) - Examples - To-Do Installation wikirepo can be downloaded from PyPI via pip or sourced directly from this repository: Back to top. Data wikirepo's data structure is built around Wikidata.org. Human-readable access to Wikidata statistics is achieved through converting requests into Wikidata's Quantity IDs (QIDs) and Property IDs (PIDs), with the Python package wikidata serving as a basis for data loading and indexing. See the documentation for a structured overview of the currently available properties. Query Data wikirepo's main access function, wikirepo.data.query, returns a pandas.DataFrame of locations and property data across time. Each query needs the following inputs: - locations : the locations that data should be queried for - Strings are accepted for Earth , continents, and countries - Get all country names with wikirepo.data.incl lctn lbls(lctn lvls='country') - The user can also pass Wikidata QIDs directly - depth : the geographic level of the given locations to query - A depth of 0 is the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/andrewtavis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andrewtavis/wikirepo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}