Find delimiter for a input file data
Project description
file_op
This package is to find the delimiter of any file.
The file should have minimum 2 rows in it.
How to install module
pip install file-op
Module name
find_delimiter
function to call
find_delimiter.find_delim(file_name,number_of_col)
where
- file_name : Name of the file
- col : Number of columns in the file.
How to call
import find_delimiter.find_delim.find_delim
delimiter = find_delim(file_name,number_of_col)
Returns
The function returns the delimiter of the file.
If the delimiter is not found then it will return '-1'
In case of any error, it will return '-2' and will print the error on console.
The possible delimiter list
This module uses the possible delimiter list as below :
delim_list = [',', '"', '_', '$', '#', '@', '&', '*','%','\t',' ','|']
If you want include more delimiters, add using below
import import find_delimiter.find_delim.delim_list
delim_list.append('YOUR-DELIMITER')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file file_op-0.0.1.tar.gz.
File metadata
- Download URL: file_op-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d11e5c1ddf0f70759f8d9c563a5d5afd97c6aeffeba97ec8a93ad5b389acd78
|
|
| MD5 |
f25b94bbc5eb3a8b1b895b77e91a3230
|
|
| BLAKE2b-256 |
0d4067be403779d6ee5b282957514e55b5ded5db13c61956db96fdd3a4fb22d0
|
File details
Details for the file file_op-0.0.1-py3-none-any.whl.
File metadata
- Download URL: file_op-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a8f4e6fe4b9df7ee4bafbfd1a29e385e68608ab816072cfac7cb8b209221c02
|
|
| MD5 |
6cf4621991636fbf547d62cb952a81a6
|
|
| BLAKE2b-256 |
1d7bd1b02bf5a7eb3d69f1dd4095ac95cc40967975df6f6f74bbac219eb8a1fa
|