Skip to main content

Tool for quick random and systematic changes (jumbling) to .csv files.

Project description

usage: main.py [-h] [-p JUMBLING_PERCENT] [-c CATEGORICAL_SWITCH_PROBABILITY]
[-d [DROP_COLUMNS ...]] [-l [CATEGORICAL_COLUMNS ...]]
[-o OUTPUT_FILE] [--not-all-categorical-parameters-present]
[--block-negative] [-n NUMBER_OF_HEADER_ROWS]
[--significant-figures SIGNIFICANT_FIGURES]
[--float-formatting FLOAT_FORMATTING]
[--int-formatting INT_FORMATTING]
csv_path

Tool for jumbling data, removing data and reformatting data in CSV format.

positional arguments:
csv_path Path to the .csv file. Note the file has to be comma
seperated with full-stop decimals , not semicolon with
comma decimal.

options:
-h, --help show this help message and exit
-p JUMBLING_PERCENT, --jumbling-percent JUMBLING_PERCENT
Percentage to jumble non-categorical values in %
-c CATEGORICAL_SWITCH_PROBABILITY, --categorical-switch-probability CATEGORICAL_SWITCH_PROBABILITY
Probability to change a categorical parameter in %
-d [DROP_COLUMNS ...], --drop-columns [DROP_COLUMNS ...]
List of column indices to drop in the new table
-l [CATEGORICAL_COLUMNS ...], --categorical-columns [CATEGORICAL_COLUMNS ...]
List of column indices containing a categorical
parameter
-o OUTPUT_FILE, --output-file OUTPUT_FILE
Write the resulting CSV file to this path
--not-all-categorical-parameters-present
Set this if all possible values of categorical
parameters are not present in the data. If set data
will be interpolated, so we assume the outer values
are represented.
--block-negative Caps values at a minimum of 0
-n NUMBER_OF_HEADER_ROWS, --number-of-header-rows NUMBER_OF_HEADER_ROWS
Number of header rows in the input CSV file
--significant-figures SIGNIFICANT_FIGURES
Number of significant figures to use when printing
floats. If neither '--significant-figures', '--float-
formatting' is set, the values will be represented
centrally, as wide as the header of the column
--float-formatting FLOAT_FORMATTING
Float formatting to use when printing. E.g. '4.2f', '
^8.2f'. Whatever is accepted by your python
interpreter 'print' function should work.
--int-formatting INT_FORMATTING
Integer formatting to use when printing. E.g. '4d', '
^8d'. Whatever is accepted by your python interpreter
'print' function should work. If not set the values
will be represented centrally, as wide as the header
of the column

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

jumblecsv-0.1.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

jumblecsv-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file jumblecsv-0.1.2.tar.gz.

File metadata

  • Download URL: jumblecsv-0.1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for jumblecsv-0.1.2.tar.gz
Algorithm Hash digest
SHA256 beb5d22e59400f655f38a8c7d8c659058d6b18ac2ce53d1d5f3342c633c4d723
MD5 329586b93f546676328086d067abd191
BLAKE2b-256 e90ad1022d4574cf69ede70388e96a2391354c9dc25e4781634f96aa2fcd55b9

See more details on using hashes here.

File details

Details for the file jumblecsv-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: jumblecsv-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for jumblecsv-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 739b0610594ccaad93d53dd29832f1c685bbeaf391fa5899c484d5e0941bc849
MD5 991fc5595cb60674daba81b2e231fc91
BLAKE2b-256 5f2d7788593f05f8801685e352841c500e9c7b671e5268b2810ef16e6fdc600d

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