Skip to main content

decol

Build Status

A tool to drop or keep columns from a CSV file.

Features

  • columns can be specified as 1-based integer indexes or column headers
  • multiple indexes or headers can be specified as a comma-separated list
  • negative indexes are supported
  • index ranges are also supported, e.g. 1:2 for the first two column

Usage

$ decol -h
Usage: decol [OPTIONS] INPUT OUTPUT

  A tool to drop or keep columns from a CSV file.

Options:
  -c, --columns COLUMNS       Comma-separated list of 1-based column indexes
                              to remove. Negative integers will index from the
                              end. May use a range, e.g. 1:2 or -3:-2 for
                              first and second of three columns. Ranges must
                              always be given in left to right column order
                              for both positive and negative indexes. Mutually
                              exclusive with --headers.
  -H, --headers HEADERS       Comma-separated list of columns to remove by
                              first-line header. Mutually exclusive with
                              --columns.
  -s, --sep SEPARATOR         Column separator.  [default: ,]
  -o, --output-sep SEPARATOR  Output column separator. [default: --sep value]
  --keep                      Keep only the specified columns in the order
                              specified in --columns or --headers.  [default:
                              False]
  --version                   Show the version and exit.
  -h, --help                  Show this message and exit.

Metadata

Release files for decol 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decol 1.1.7
File Size Uploaded Provenance Actions
decol-1.1.7.tar.gz 6.7 kB Without provenance Details for decol-1.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for decol 1.1.7
File Interpreter ABI Platform Actions
decol-1.1.7-py2.py3-none-any.whl Python 3, Python 2 none any Details for decol-1.1.7-py2.py3-none-any.whl

Total release size: 12.7 kB

Release files / decol-1.1.7.tar.gz

Download URL decol-1.1.7.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fe90f8a929ae8e560475f0ae9990050679e0e6dd742686f22bf691d955dae925
BLAKE2b-256 checksum
How to use checksums
0f1fc003fb9e77ab36b510219c05d19b9d896a5321568f4cd113509c1da5f5c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / decol-1.1.7-py2.py3-none-any.whl

Download URL decol-1.1.7-py2.py3-none-any.whl
Size 6.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0b41d428a4b6b3ae8282a3e4c130f76c0943e78dbfc1ffc65a68a76b9dcbb65b
BLAKE2b-256 checksum
How to use checksums
0fe3e16b1d6649830a42a942eb7f9ec8ccf50b4a3eb947608e0bba4ac3e6fb1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for decol 1.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page