Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode Function #5

Open
BastinRobin opened this issue Jul 7, 2017 · 0 comments
Open

Encode Function #5

BastinRobin opened this issue Jul 7, 2017 · 0 comments
Assignees

Comments

@BastinRobin
Copy link
Member

Encode:

Takes a complete pandas dataframe and it converts every categorical variable into integers and
resumes its hashing values for each categorical column and returns a tuple with dataframe and hashmap

Method Structure:

.. code-block:: python

def encode(data):
	
    ''' Your code goes here '''
    
    return data

Parameters:

data : pandas dataframe
	
    Enter the pandas dataframe as first input

Usage:

.. code-block:: python

    >> p = process()
    >> p.encode(pd.DataFrame()
    >> <pandas.dataframe>
@BastinRobin BastinRobin self-assigned this Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant