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=datafile("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.1.tar.gz (2.6 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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tablefile-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 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.1.tar.gz
Algorithm Hash digest
SHA256 0615849543129dedc5b529df774e69db2d8b98ad78123d4d0f9c4a8f0ebb2eb0
MD5 75ad04298b1671c52537c92964a5cb16
BLAKE2b-256 0ccc21c39ce53e25daf3bc6b7a9a5abc152a2e2f89306a8254be1ce73c51eb6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tablefile-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e8c7cd0eb390130dddcbcba81b89d6e6ae58b4a5508527e616e87a2ac61dde1
MD5 816c331a9c03f399c9bd122a658ccd7a
BLAKE2b-256 c9e0b309effbaf6dfa718a7979ddede9044faef6dfb4cf6dea405f37fd628ff2

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