Make every step oneLine.
Project description
oneLine
Make every step oneLine.
What is it?
It's a personal code set for learning and researching, and it provides advanced encapsulation of some libraries, designing to provide a simpler mode of operation and help people to simplify their codes concisely.
This library is a collection of code used for learning and analysis, and the content is not perfect for the time being.
Installation
You can install this module with command below:
pip install one-line
How to use it?
Import module and dataset:
from oneline import OneData
# this how we measure data in oneLine. OneData is an extension class of DataFrame.
data = OneData('test.csv')
# input the data
You can also import data using Pandas:
import pandas as pd
from oneline import OneData
temp = pd.read_csv('test.csv')
data = OneData(temp)
# a DataFrame type data is also acceptable
Some example:
data = data.fill_na()
# fill the NaN values
summary = data.summary(info=False)
# simple summary of data, which will print the summary if info is True
data.means('parameter1', hue='parameter2')
# calculate the means, which can have a hue variable applied
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
one-line-0.2.3.tar.gz
(14.7 kB
view hashes)
Built Distribution
one_line-0.2.3-py3-none-any.whl
(18.5 kB
view hashes)