Pandas with some cool additional features
Project description
pandit ☸️
Pandas with some cool additional features
Installation and usage
pip install pandit
import pandas as pd, import pandit
# or
import pandit as pd
df=pd.read_tsv(path)
df.sieve(x=3).show()
sieve
df.sieve(column=value) # returns df rows where column equals value
df.sieve(column=[value1,value2]) # returns df rows where column is value1 or value2
# It's like pd.query but with a pythonic syntax instead of the sql string.
show
df.show() # shows multiple rows column by column (one line per column) with nice formatting
df.rshow(n) # random sample of size n
Also:
read_tsv
read_csv
with sep='\t'
for lazy persons
read_jsonl
read_wandb(project_name)
drop_constant
drop columns that are constant
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
pandit-0.0.7.tar.gz
(15.3 kB
view hashes)
Built Distribution
pandit-0.0.7-py3-none-any.whl
(15.3 kB
view hashes)