Skip to main content

Fetch psychology datasets from remote sources.

Project description

Fetch psychology datasets from remote sources.

Krank is a single-stop for using publicly available remote datasets. It offers simplified downloading, storing, version controlling, loading into Python, minimal/corrective pre-processing, and in some cases, data harmonization of various datasets. This project has a huge dependency on the Pooch <https://www.fatiando.org/pooch Python package, which makes retrieving and storing any remote file incredibly easy.

Krank currently has a limited set of modules that are each dedicated to a specific type of dataset. The topical focus of these datasets is probably psychology or cognitive neuroscience. The datasets are grouped into separate modules for organizational purposes, where each module focuses on a specific type of dataset. Each module functions almost identically, and the separation of fetching functions into these separate modules is primarily for organizational purposes.

Currently implemented modules include:

  • tables: Fetch tables that were manually extracted from journal publications.

  • lexicons: Fetch lexicons that contain vocabularies with associated numerical scores.

  • liwc: Fetch previously published or shared LIWC scores/output.

Usage

Fetch (i.e., download) the threat LIWC dictionary, described in Choi et al., 2022, PNAS and shared publicly via Michele Gelfand’s personal website.

from krank import lexicons

df = lexicons.fetch_threat()

An identical way to fetch the same file is through krank’s top-level interface, which offers a more general way to retrieve datasets and might be more convenient for looping over a large number of datasets to load them systematically.

import krank

df = krank.fetch_lexicon("threat")

Installation

pip install krank

Contributing

Currently, Krank is developed mostly for my own personal desires for more convenient data access, more convenient data storage, a better ability to see a high-level view of all the datasets available for my projects, and better version-control over the public datasets I use and create. Making a Python package with documentation to view the datasets seemed like the best way to do this.

That being said, if anyone else finds it useful and wants to contribute, please do. Feel free to post questions, bugs, feature requests, new dataset proposals, or even new module proposals on the Krank GitHub Issues page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

krank-0.0.1.dev3.tar.gz (19.9 kB view hashes)

Uploaded Source

Built Distribution

krank-0.0.1.dev3-py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page