SerialEM mdoc files as pandas dataframes.
Project description
mdocfile
SerialEM mdoc files as pandas dataframes.
mdocfile is Python package for working with SerialEM mdoc files.
Quickstart
mdocfile.read() will return the contents of an mdoc file as a pandas
dataframe.
import mdocfile
df = mdocfile.read('my_mdoc_file.mdoc')
For writing valid mdoc files, please see writing mdoc files.
Installation
pip:
pip install mdocfile
Parsing from text
Mdoc.from_string().as_dataframe() will return the contents of string mdoc data as a pandas dataframe.
This is useful for mdoc data that is not stored in a file (e.g. from a database or a web request).
from mdocfile.data_models import Mdoc
mdoc_data = ...
mdoc = Mdoc.from_string(mdoc_data).as_dataframe()
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 mdocfile-0.2.2.tar.gz.
File metadata
- Download URL: mdocfile-0.2.2.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74d2dbe55ffda288f61cfac82aaf0052e1365a65c5acc1ed93e3c86e1457e5b0
|
|
| MD5 |
7f1bc369631435ddc30417dc49578eb0
|
|
| BLAKE2b-256 |
13887e03e0a87da2d92c6e7c201d5ecde05bd4aea1be42ec0c1ec0eec46fb1c4
|
File details
Details for the file mdocfile-0.2.2-py3-none-any.whl.
File metadata
- Download URL: mdocfile-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1efa8f92a4807f4f4e52782b0a32dbb19b20349c6f5b73d515c669e73d7da73
|
|
| MD5 |
017e4215344e97654591c57f638d95af
|
|
| BLAKE2b-256 |
9572f76d2ed487647deeac421162a557b24d3ec8e10530095e807d62b1a58cbf
|