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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gxb_dawg-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1eb752a0b402d56bbead280f1317385bac57ca76e105d5ceb6a7f7157737a9c0
MD5 00d15b820617956d11be11985cea66a3
BLAKE2b-256 916d41f890c62911d9c960c6b81c7fc1ea72c27b8cd03e3c82d56b5c34bca3d0

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