Skip to main content

Utilities for basic data science

Project description

datasci

Tents: tabular entries

from datasci import Tents

header = ["col1", "col2", "col3"]
tents = Tents(header=header)
for val1, val2, val3 in zip([1,2], [3,4], [5,6]):
    new_tent = tents.new()
    new_tent.update(col1=val1)
    new_tent.col2 = val2
    new_tent["col3"] = val3
    tents.add(new_tent)
with open("outfile.tsv", "w") as ofstream:
    print(tents, file=ofstream)
$cat outfile.tsv
col1	col2	col3
1	3	5
2	4	6

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

datasci_bricoletc-0.2.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

datasci_bricoletc-0.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file datasci_bricoletc-0.2.0.tar.gz.

File metadata

  • Download URL: datasci_bricoletc-0.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for datasci_bricoletc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ca0e622856f45e2bdeb681b1c78b27e1de6344c90c2d3bbd296793b4e7607ae4
MD5 053fee75bc394ad603128f8a56689791
BLAKE2b-256 4405146c4f587d678fab5e1d584a16d799b50a4da76868fa71c89297e83425d3

See more details on using hashes here.

File details

Details for the file datasci_bricoletc-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasci_bricoletc-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff3e200df0b2518cbbe2e4a245caad72e5c6de44b43899b66baf74c9c6d84861
MD5 d120ca2518c16c410cdb4214bcbedf43
BLAKE2b-256 3c5547e662af66720b31746c385b9534365cad7f905004e6c1026fdc4055ee10

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