Science Score: 59.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
4 of 8 committers (50.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.1%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Python package to handle TFS files
Basic Info
- Host: GitHub
- Owner: pylhc
- License: mit
- Language: Python
- Default Branch: master
- Homepage: https://pylhc.github.io/tfs/
- Size: 35.1 MB
Statistics
- Stars: 8
- Watchers: 15
- Forks: 4
- Open Issues: 0
- Releases: 33
Topics
Metadata Files
README.md
TFS-Pandas
This package provides reading and writing functionality for Table Format System (TFS) files.
Files are read into a TfsDataFrame, a class built on top of the pandas.DataFrame, which in addition to the normal behavior attaches a dictionary of headers to the DataFrame.
See the API documentation for details.
Installing
Installation is easily done via pip:
bash
python -m pip install tfs-pandas
One can also install in a conda/mamba environment via the conda-forge channel with:
bash
conda install -c conda-forge tfs-pandas
Example Usage
The package is imported as tfs, and exports top-level functions for reading and writing:
```python import tfs
Loading a TFS file is simple
dataframe = tfs.read("pathtoinput.tfs", index="indexcolumn")
You can access and modify the headers with the .headers attribute
usefulvariable = dataframe.headers["SOMEKEY"] dataframe.headers["NEWKEY"] = somevariable
Manipulate data as you do with pandas DataFrames
dataframe["NEWCOL"] = dataframe.COLA * dataframe.COL_B
You can check the validity of a TfsDataFrame, speficying the
compatibility mode as well as the behavior in case of errors
tfs.frame.validate( dataframe, nonunique_behavior="raise", # or choose "warn" compatibility="mad-x", # or choose "mad-ng" )
Writing out to disk is simple too
tfs.write("pathtooutput.tfs", dataframe, saveindex="index_column") ```
Compression is automatically supported, based on the provided file extension (for supported formats):
```python import tfs
Reading a compressed file is simple, compression format is inferred
df = tfs.read("pathtoinput.tfs.gz")
When writing choose the compression format by providing the appropriate file extension
tfs.write("pathtooutput.tfs.bz2", df) tfs.write("pathtooutput.tfs.zip", df) ```
License
This project is licensed under the MIT License - see the LICENSE file for details.
Owner
- Name: PyLHC
- Login: pylhc
- Kind: organization
- Location: CERN
- Website: https://pylhc.github.io/
- Repositories: 26
- Profile: https://github.com/pylhc
Organisation for the OMC Team at CERN, in BE-ABP-LNO.
GitHub Events
Total
- Create event: 5
- Issues event: 2
- Release event: 2
- Delete event: 3
- Issue comment event: 9
- Push event: 99
- Pull request event: 1
- Pull request review event: 45
- Pull request review comment event: 58
Last Year
- Create event: 5
- Issues event: 2
- Release event: 2
- Delete event: 3
- Issue comment event: 9
- Push event: 99
- Pull request event: 1
- Pull request review event: 45
- Pull request review comment event: 58
Committers
Last synced: almost 3 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Felix Soubelet | 1****t@u****m | 34 |
| JoschD | j****y@g****m | 26 |
| JoschD | 2****D@u****m | 7 |
| Joschua Werner Dilly | j****y@c****h | 4 |
| Felix Soubelet | f****t@p****m | 2 |
| Mäel Le Garrec | m****c@c****h | 2 |
| lmalina | l****a@c****h | 1 |
| mihofer | m****r@c****h | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 47
- Total pull requests: 67
- Average time to close issues: 3 months
- Average time to close pull requests: 15 days
- Total issue authors: 6
- Total pull request authors: 6
- Average comments per issue: 1.15
- Average comments per pull request: 1.09
- Merged pull requests: 66
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: 14 days
- Issue authors: 0
- Pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 2.33
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- JoschD (21)
- fsoubelet (16)
- lmalina (6)
- rdemaria (2)
- mihofer (1)
- st-walker (1)
Pull Request Authors
- fsoubelet (50)
- JoschD (19)
- Mael-Le-Garrec (2)
- fscarlier (2)
- lmalina (1)
- st-walker (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- pypi 3,870 last-month
-
Total dependent packages: 12
(may contain duplicates) -
Total dependent repositories: 4
(may contain duplicates) - Total versions: 38
- Total maintainers: 1
pypi.org: tfs-pandas
Read and write tfs files.
- Documentation: https://tfs-pandas.readthedocs.io/
- License: MIT License
-
Latest release: 4.0.0
published about 1 year ago
Rankings
Maintainers (1)
conda-forge.org: tfs-pandas
A wrapper around pandas DataFrames to handle TFS files.
- Homepage: https://github.com/pylhc/tfs
- License: MIT
-
Latest release: 3.2.1
published over 3 years ago
Rankings
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- JamesIves/github-pages-deploy-action 3.7.1 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite