Skip to main content

A library for accessing and analyzing Pickleball data from pklmart

Project description

pklshop

A demo of analyzing data Pickleball data from pklmart

Install

Install using:

pip install pklshop

How to use

First, you’ll need to setup a database.ini file (it’s only about 5 lines). This should be stored in the pklshop root directory. Check out nbs/00_connect for an example of how to write this.

Once that’s done, this lib provides a function get_tab_as_df you can use to create and display tables within the database

Available tables are:

table_names
['tournament', 'match', 'game', 'player', 'team']
match_df = get_tab_as_df("match")
match_df.head()
<style scoped> .dataframe tbody tr th:only-of-type { vertical-align: middle; }
.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}
</style>
match_id tourn_id consol_ind team_id_1 team_id_2 maint_dtm maint_app create_dtm create_app
0 M1 T1 N T1 T2 2022-04-09 03:19:33.840951+00:00 postgres 2022-04-09 03:19:33.840951+00:00 postgres
1 M2 T2 N T2 T3 2022-05-26 00:45:11.301752+00:00 postgres 2022-05-26 00:45:11.301752+00:00 postgres
2 M5 T5 N T6 T5 2022-06-28 00:40:22.948360+00:00 postgres 2022-06-28 00:40:22.948360+00:00 postgres
3 M6 T6 N T5 T7 2022-07-07 23:01:45.921540+00:00 postgres 2022-07-07 23:01:45.921540+00:00 postgres
4 M7 T7 N T8 T9 2022-07-11 02:40:50.597016+00:00 postgres 2022-07-11 02:40:50.597016+00:00 postgres

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

pklshop-0.0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

pklshop-0.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file pklshop-0.0.2.tar.gz.

File metadata

  • Download URL: pklshop-0.0.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for pklshop-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2b9e396f439686c02c3f9f82409e0f3484bb1b34e835d7a390ce7dd4f80e1513
MD5 0c4649d7846346a04bf34cf46d7208be
BLAKE2b-256 3fe9198b27b05414cfb7f3b883ef30554c2ed60f0be1ef3bdde012f68f7264d4

See more details on using hashes here.

File details

Details for the file pklshop-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pklshop-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for pklshop-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6e1b121606dfec2596a6b797ca5b0a54bfa61fcc709f7cbc6dcf7b121ab81d47
MD5 da497c49bd3c7d678325a3725515fd6c
BLAKE2b-256 2d09373040f9e897d3043f5a8905d8496878f613530d48ecc81c449329f7c073

See more details on using hashes here.

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