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.3.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.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file gxb_dawg-0.1.3.tar.gz.

File metadata

  • Download URL: gxb_dawg-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 44aeffc5e24059506513027bc442eabb3e18a59a4fd1a68a9c3ab13d99c75716
MD5 a2ec653a2ce3fffe8f2c2d35cded768c
BLAKE2b-256 a3aacc2a17f53cc6e0ad1fd9e64d03f178a345a65027af51fa93e3266c720228

See more details on using hashes here.

File details

Details for the file gxb_dawg-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: gxb_dawg-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 541513e6d2b66574b3855575972acd2b1b649257d8d6544531acd1b3c6aec932
MD5 a5863fc6c73c52c413dcfd7a068e7314
BLAKE2b-256 741f4df0f792a4536405654d6a6e0cb660de4a858d15729fa000d51c936ba8c7

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