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 hashes)

Uploaded source

Built Distribution

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page