Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gxb_dawg-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for gxb_dawg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f10fadad34a40b9b65447e85abb8739a4e64b96d67c2086771a7d21ed138fa8d
MD5 5f9807a9b997d9da0049a9c5863c81fc
BLAKE2b-256 a4a2104912cda97cd7a0ac8f1ce7ffbcb8f445721436d9182d875dbe477152da

See more details on using hashes here.

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

Hashes for gxb_dawg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cea7c99cc15ee9944ecbefabdd09c4d2c18aac571db9fcc5da4ab048e3ef75b
MD5 1e78972421565a857062daf07e2d9efe
BLAKE2b-256 b3c2719e07b7a661549b222f54d247ca83ab32fa78103d8d336b3354173bb167

See more details on using hashes here.

Supported by

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