mukundkal / pandas-cub Goto Github PK
View Code? Open in Web Editor NEWA Data Science Library - Clone of Pandas - Dubbed Pandas Cub
A Data Science Library - Clone of Pandas - Dubbed Pandas Cub
def _getitem_tuple(self, item):
# simultaneous selection of rows and cols -> df[rs, cs]
def _ipython_key_completions_(self):
# allows for tab completion when doing df['c
def __setitem__(self, key, value):
# adds a new column or a overwrites an old column
Automatically Add Doc Strings to similar methods and functions. Implementation Done but needs to be added for some other functions too.
def _add_docs(self):
agg_names = ['min', 'max', 'mean', 'median', 'sum', 'var',
'std', 'any', 'all', 'argmax', 'argmin']
agg_doc = \
"""
Find the {} of each column
Returns
-------
DataFrame
"""
for name in agg_names:
getattr(DataFrame, name).__doc__ = agg_doc.format(name)
Add datatype stability in case of multiple data types in a column
Required a common datatype per column for integrity
def read_csv(fn):
"""
Read in a comma-separated value file as a DataFrame
Assume Header row is present.
Parameters
----------
fn: string of file location
Returns
-------
A DataFrame
"""
from collections import defualtdict
data = defualtdict(list)
with open(fn) as f:
header = f.readline() #comma separated string
column_names = header.split('\n').split(',') #column name list
for line in f: #next line after header
values = line.strip('\n').split(',')
for col, val in zip(column_names,values):
data[col].append(val)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.