Skip to main content

Extract label data from the MAFA dataset into a Pandas DataFrame.

Project description

MAFAExtractor

This is a tool for extracting data from the MAFA Dataset. It succesfully extracts all labels and data from the dataset's provided MATLAB files into a Pandas DataFrame.

The primary function is extract_mafa() which is all you really need if you're just extracting the data into Pandas. If the filename isn't the original LabelTrainAll.mat or LabelTestAll.mat, then you have to provide the dataset_type which can be either "train" or "test". You can also choose whether you want the dataframe to be cleaned to have more readable and processed values by the clean parameter (which by default is True), or can be set to False if you require the dataset's original headings.

Installation

Install mafaextractor by either running pip install into your environment using:

pip install mafaextractor

or by cloning the github repository into your working directory:

git clone https://github.com/DhyeyLalseta/MAFAExtractor

Usage:

from mafaextractor import extract_mafa

df = extract_mafa("path/to/LabelTrainAll.mat <or> LabelTestAll.mat")

# differing file names
df = extract_mafa("path/to/IChangedTheTestingSetsFileName.mat", dataset_type="test")

# no cleaning
df = extract_mafa("path/to/TestingSet.mat", dataset_type="test", clean=False)

If you run into any bugs or have any concerns feel free to contact me via e-mail at dhyeyl1@outlook.com!

License

This project is licensed under the terms of the MIT license.

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

MAFAExtractor-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MAFAExtractor-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file MAFAExtractor-0.1.1.tar.gz.

File metadata

  • Download URL: MAFAExtractor-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.8.3 Darwin/19.6.0

File hashes

Hashes for MAFAExtractor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 812faf0889cfea79b30bb2d32ed5970dda0ecdabbc7f2494d837d7b19bc25caf
MD5 90d190abf35002d9eaab60b32d2ab214
BLAKE2b-256 fdc18eb5d9fab748fdf47a7fd7d7d577724caa37ab5a6bc3cae9f05f53f60533

See more details on using hashes here.

File details

Details for the file MAFAExtractor-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: MAFAExtractor-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.8.3 Darwin/19.6.0

File hashes

Hashes for MAFAExtractor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f001e4bcf01fd387084bf6ffb48a3db48d927bc98879615b978374b9ffd7a7c8
MD5 e00ea036347087a83ac5704783d53bd3
BLAKE2b-256 2260ae02047bd732f6d32d3cf86263386d44526c18c45a48ea6d504b3e42f489

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