Skip to content

AndresAlgaba/pytemppack

Repository files navigation

pytemppack

pic2   pic5   pic1   pic8

pic6   pic7   pic3   pic4

This is a template for Python packages with poetry with additional tools for development, such as autoformatting, type checking, and more.

The pytemppack folder contains the python module, and we have some examples.

As best practices are always changing, and people have different experiences, we encourage you to contribute to this project!

Features

TODO

Installation

Use the package manager pip to install pytemppack from PyPi.

pip install pytemppack

For development install, see contribute.

Usage

Transform a np.ndarray into a pd.DataFrame.

from pytemppack import PyPack
from pytemppack.utils import generate_random_array

data = generate_random_array((5, 5))
columns = ['a', 'b', 'c', 'd', 'e']

pypack = PyPack(data)
pypack.transform_results(columns)

pypack.results.head()

        a               b               c               d               e
0   0.976700        0.118091        0.441006        0.659874        0.060139
1   0.380196        0.241766        0.609871        0.735758        0.683689
2   0.923246        0.318534        0.863621        0.222754        0.671238
3   0.261692        0.964079        0.863758        0.172066        0.611018
4   0.319097        0.263650        0.674881        0.870415        0.060137

Community

If you are interested in cross-disciplinary research related to machine learning, you can:

Disclaimer

The package and the code is provided "as-is" and there is NO WARRANTY of any kind. Use it only if the content and output files make sense to you.

Acknowledgements

This repo was a great help for autosummary recurssion to document the API.