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
mdocfile-0.1.3.tar.gz
(28.2 kB
view details)
Built Distribution
File details
Details for the file mdocfile-0.1.3.tar.gz
.
File metadata
- Download URL: mdocfile-0.1.3.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edb89f493ccdb6c04824e6c0cdeffe013bd20d95f03647ecb96f8740fd22bfc9 |
|
MD5 | f43a8ddff1e92c3ff8ee5b2049755120 |
|
BLAKE2b-256 | 1075fa1028ded7c3fe2491f3deff79c88d598e22dff5b1a2c8d8112c5eb1db85 |
File details
Details for the file mdocfile-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: mdocfile-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eb0166953a39a7f6edb1d4ebef48a6fbab3bed095d758d58edb5dd3cd7995a1 |
|
MD5 | e19b50799f6ed8e785ccc78945adbd0d |
|
BLAKE2b-256 | 1c454d2c5479c6a2b0635fbb3107cda2ce80399396a7b74b6074f0961c7b043a |