Skip to content

Encode Function #5

@BastinRobin

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>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions