Skip to main content

Yet Another Wrapper of Nysol M-Command in Python.

Project description

mcmder

Yet Another Wrapper of Nysol M-Command in Python.

Description

High-speed processing (CSV) of large-scale structured data tables.

To know more about Nysol and M-Command, see the official documents.

What is Nysol and M-Command?

Nysol Official Page

M-Command GitHub

How fast Nysol is?

Nysol Biz Page (Japanese)

Features

  • Create M-Command easily in python with method chaining.
  • Execute M-Command without putting large data on memory.(csv to csv)
  • Optionally use pandas DataFrame as input and output.

Requirement

Usage

From CSV File

sample.csv

a,b,c
x,1,4
y,2,9
z,3,3
>>> from mcmder import Mcmder
>>> m = Mcmder('sample.csv')
>>> mc = m.mcut(['a','c'])
>>> mc.save('cut.csv')

cut.csv

a,c
x,4
y,9
z,3
>>> mc.dataframe
   a  c
0  x  4
1  y  9
2  z  3

From pandas DataFrame

>>> from mcmder import Mcmder
>>> import pandas as pd
>>> import numpy as np
>>> df = pd.DataFrame(np.random.randn(6,4), columns=list('ABCD'))
>>> m = Mcmder(df)
>>> mc = m.mcut(['A','C','D']).msel('${A}>0')
>>> mc.dataframe
          A         C         D
0  0.251857  0.080099 -1.211923
1  0.100167 -1.824585  0.051611
2  0.890079  1.440997 -0.298709

License

MIT

Author

Yusuke Hayashi

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

mcmder-0.2.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

mcmder-0.2.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file mcmder-0.2.0.tar.gz.

File metadata

  • Download URL: mcmder-0.2.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for mcmder-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a5cd20bcce990360e78068003f7e4efb2d89b21db27f047e3738995294860701
MD5 65558910ff83bab81579e8ec42432694
BLAKE2b-256 aab3ec108592895bcc1004ce05bec0f492fe1572b2e6b77eb802fb4abe17ef45

See more details on using hashes here.

File details

Details for the file mcmder-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mcmder-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for mcmder-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98d9150ec2efac4b581b9fdad87887bbc0f6cc7f84c8db2eed2a45667ec2ed22
MD5 f5419b9f4132883f4880204df0c35785
BLAKE2b-256 c38f0d22a37b8ac08915ad2be3fbda6c9e3d1158729925eb180f4c194d8743e4

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