Skip to main content

Pandas API reference

Project description

qu ⠶ pd

CI Status Coverage Checked with mypy Code style: black

Pandas API reference

Motivation

To collect a database of the pandas API to enable gamified study, or simple reference usage.

Outline

  • Either download docs as ZIP of HTML, or mine the package repo (parse RST with docutils to give doctrees). The latter would be preferable (but perhaps not useful since autosummary is used).
  • Make sqlite3 database with fields: name (e.g. "DataFrame"), qualname prefix (e.g. "pandas"), type (e.g. "class"), and so on. This would amount to a 'walk' of the library's entity tree.
  • Expose these entities in a structured way (as an entity tree).

Possible applications

  • 🐼 PQ Test: pandas API recall score, like an IQ test
  • 🐼 PPM: typing test, for completing tasks in pandas

Requires

  • Python 3.10+

Installation

pip install qpdb

qp is available from PyPI, and the code is on GitHub

Usage

The package can be used on the command line by calling qp

usage: qp [-h] [-v VERSION] [-d | --debug | --no-debug]
          [-f | --fetch | --no-fetch]
          [package_name]

positional arguments:
  package_name          (default: pandas)

options:
  -h, --help            show this help message and exit
  -v VERSION, --version VERSION
                        (default: )
  -d, --debug, --no-debug
                        (default: False)
  -f, --fetch, --no-fetch
                        (default: True)

To print the inventory of names and their corresponding URLs, run qp --no-fetch. (The --fetch flag is assumed by default)

To breakpoint and take a look at what info is available, run either qp --debug or qp --debug --no-fetch

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

qpdb-0.1.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

qpdb-0.1.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file qpdb-0.1.2.tar.gz.

File metadata

  • Download URL: qpdb-0.1.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/5.0.0 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.7

File hashes

Hashes for qpdb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c7156a10d0ad7bfe87a1f54e701537a4aff77a65e77369fb5acf7f9a47058b36
MD5 ed72553e62eb813538569141238bd529
BLAKE2b-256 f24e2578f926baea68b9dc3ace403e104158ccfac97385075d19073eb094ca51

See more details on using hashes here.

File details

Details for the file qpdb-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: qpdb-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/5.0.0 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.7

File hashes

Hashes for qpdb-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ac788f319365aa21acb4f8a1d1f38452271deefcabd248147c4cf25fd9b1fda
MD5 174344352b9fc7fadfb38dc3d4336bd4
BLAKE2b-256 3863fbde20ad47d07bf4d740832db32489501b5d43a648365fb3e700c3ce0da9

See more details on using hashes here.

Supported by

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