A utility package for common pandas code snippets
Project description
gxb
A lightweight Python utility package that provides ready-to-use pandas code snippets for common DataFrame operations.
Installation
pip install gxb
Usage
from gxb import message
snippets = message()
# Get all available snippets
print(snippets)
# Get a specific snippet
print(snippets["to_datetime"])
# Output: DataFrame["colum_name"] = pd.to_datetime(DataFrame["colum_name"], errors = "coerce")
print(snippets["string"])
# Output: DataFrame["column_name"] = DataFrame["column_name"].astype(str)
Available Snippets
| Key | Description |
|---|---|
to_datetime |
Convert a column to datetime using pandas |
string |
Convert a column to string type |
License
MIT License
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
gxb_dawg-0.1.1.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gxb_dawg-0.1.1.tar.gz.
File metadata
- Download URL: gxb_dawg-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f10fadad34a40b9b65447e85abb8739a4e64b96d67c2086771a7d21ed138fa8d
|
|
| MD5 |
5f9807a9b997d9da0049a9c5863c81fc
|
|
| BLAKE2b-256 |
a4a2104912cda97cd7a0ac8f1ce7ffbcb8f445721436d9182d875dbe477152da
|
File details
Details for the file gxb_dawg-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gxb_dawg-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cea7c99cc15ee9944ecbefabdd09c4d2c18aac571db9fcc5da4ab048e3ef75b
|
|
| MD5 |
1e78972421565a857062daf07e2d9efe
|
|
| BLAKE2b-256 |
b3c2719e07b7a661549b222f54d247ca83ab32fa78103d8d336b3354173bb167
|