Skip to main content

timeconMT

A conversion from csv file to dictionary by Malphrus Tech

Usage

import

from csv2dictionary.csvpro import CsvBrain

use

data

case1 = CsvBrain('test.csv')
case1.data
#returns a list of dictionaries
#the first line in the csv are the keys in the dictionaries

headers

case1 = CsvBrain('test.csv')
case1.header_labels
#returns a list of Header labels

Search

case1 = CsvBrain('test.csv')
case1.search('dog')
#returns a list of dict's that contain "dog" as a value under any key

castInt

case1 = CsvBrain('test.csv')
case1.castInt('age')
#loops thru the list of dictionaries and changes cast all values under an 'age' key to integers

castInt

case1 = CsvBrain('test.csv')
case1.castFloat('age')
#loops thru the list of dictionaries and changes cast all values under an 'age' key to Floats

Release files for csv2dictionary 0.0.2

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

Source distribution (sdist)

Source distribution for csv2dictionary 0.0.2
File Size Uploaded
csv2dictionary-0.0.2.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for csv2dictionary 0.0.2
File Interpreter ABI Platform
csv2dictionary-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / csv2dictionary-0.0.2.tar.gz

Download URL csv2dictionary-0.0.2.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
09c5fb5c59eee51fc07b9bc1ea435300a397a8418296ada523c93232fe1c0ce7
BLAKE2b-256 checksum
How to use checksums
7b0149b123fdc0c87f67fe7ec208bba1cbe85f21999510c2ec928c72df7ff788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.2

Release files / csv2dictionary-0.0.2-py3-none-any.whl

Download URL csv2dictionary-0.0.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6787cac19984f55784c0d393472f2f50493441b4c58c7cf7b0f7d28476dab0d
BLAKE2b-256 checksum
How to use checksums
ff81aa859e6a605d9df7b6daef2354a06441ac112049338691fe5486dbf48357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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