GithubHelp home page GithubHelp logo

mukundkal / pandas-cub Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 54 KB

A Data Science Library - Clone of Pandas - Dubbed Pandas Cub

Python 91.75% Jupyter Notebook 8.25%
clone data-science library pandas project

pandas-cub's People

Stargazers

 avatar

Watchers

 avatar  avatar

pandas-cub's Issues

automata docs

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)

Multiple Data type handler in read_csv()

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.