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.1.tar.gz
(9.4 kB
view details)
Built Distribution
File details
Details for the file pklshop-0.0.1.tar.gz
.
File metadata
- Download URL: pklshop-0.0.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47adc8f39375202b5c3e18fbea653ab33ec841130fdb67896ea22a7af5b62a04 |
|
MD5 | eb91b34550f48e1def67bd961f03d30e |
|
BLAKE2b-256 | 29bd2306618d9f193c04037c97831e40f6e7b35075f8476fbe371e00c4d63700 |
File details
Details for the file pklshop-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pklshop-0.0.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1844573ae14068480df431ca62e1b428b5e8f71c4d77e7d03f0a4cdc3e699606 |
|
MD5 | 2bdf90e4019ffa1749e1cd4c433d98d3 |
|
BLAKE2b-256 | 84fcaf9d3358ba2f130814b3aa5e27a00b94e9fba11c6ebbdafa2519160c1656 |