Skip to main content

A package for reading and processing tabular data files for analytical applications

Project description

tablefile package for python for reading a data file with multiple columns separated by space or any other character

Install command:

pip install tablefile

Use example:

from tablefile import file
f1=file("C:/Folder/SubFolder/data-file-name.txt","\t") # Last argument here specifies the column separator (here tab). 
#    or
f1=file("C:/Folder/SubFolder/data-file-name.txt") #If separator is blank or space (" ") one need not specify separator.
lines=[] # An empty list to store lines from the file
cols=[]  # An empty list to store columns from the file 
average=[] # An empty list to store average of column values
sum=[] # An empty list to store summation of column values
sd=[] # An empty list to store standard deviation of column values
max=[] # An empty list to store maximum number among column values
min=[] # An empty list to store minimum number among column values

f1.read(lines,"l/c") # or just 'f1.read(lines)'. This will read all the lines and store in 'lines' as list array
f1.read(cols,"c/l")# Will read all the columns and store in 'cols' as list array
f1.read(average,"av")
f1.read(sum,"sm")
f1.read(sd,"sd")
f1.read(max,"mx")
f1.read(min,"mn")
print(lines[i][j]) # Prints column j element of line number i  (e.g. for 1st line i=0 and for 1st column j=0)
print(cols[i][j]) # Prints column i element of line number j  
print("Average=",average,"Sum=",sum,"Sigma=",sd,"Maximum=",max,"Minimum=",min)

For details please follow the link https://www.respt.in/p/python-package-tablefile.html

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

tablefile-0.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

tablefile-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file tablefile-0.0.2.tar.gz.

File metadata

  • Download URL: tablefile-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for tablefile-0.0.2.tar.gz
Algorithm Hash digest
SHA256 24e94edce942b1cf6a489b9314aba5fb02cf86b5511bd99425d38855f29aec2c
MD5 7cee36e1ccd05e1f12d5d60af20d3eb0
BLAKE2b-256 98ab72a041f20f63fba7220f65ff93ddcd2f045f7508886c13274ba15568a270

See more details on using hashes here.

File details

Details for the file tablefile-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tablefile-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for tablefile-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8551d4d3e959d747dd41aada3a5919bd008c155c069d2a206ca22d5db33bec9
MD5 5e24b2001bba9c5606ae280b1d2a067b
BLAKE2b-256 c457d5be7c1f72e79563c4ac0323e66392bd52235073d502a29236a38ccb1bee

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