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.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

datasci_bricoletc-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for datasci_bricoletc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c50b53e570a9664e0e88e9fa0963b885a0b10a6fe14978d2c227421f531339af
MD5 fc95c9d8574f0b1cd2a5fb3f2a200d7e
BLAKE2b-256 d1de68df42669c180a5ad70629ecdb493e6f072eaece0d72f772c81e0dec28be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datasci_bricoletc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb17ae0107a035be694a463ce2bcfe07f0f52294006797c797c6b214c6fb4d49
MD5 d28c85fc73e8b4936c3733938c707cff
BLAKE2b-256 070621aeb4e5d9a0fa78d82ebd01984847aad492f2cce955601a110372d69d5d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page