Skip to content

Encode Function #5

Description

@BastinRobin

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions