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

pd_docs-0.1.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

pd_docs-0.1.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file pd_docs-0.1.6.tar.gz.

File metadata

  • Download URL: pd_docs-0.1.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for pd_docs-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a3577419e4ec25a6f12750bc51c50c5fc58e4f27f807ac931ff58c8688b250bd
MD5 b772be871b73c20e35b0bc567fa85aa0
BLAKE2b-256 6cd833371c8d8d0e1dd7f064bc52ba95339082a7b26c10b9f79d810ba7dee517

See more details on using hashes here.

File details

Details for the file pd_docs-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pd_docs-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for pd_docs-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 32a59e99d1fa9a8232218b0684f9e605e8e6c10d20aafc27ca87d6741290e189
MD5 eaf2b4bbbfd8bb3c3f8c17fdcebdd882
BLAKE2b-256 a2173d874b3b5ebf6d8d77a7b395ee5d9ad3f2546fd1ff28b4cf5bcd60ca8651

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