Machine Learning

Python one hot encoding pandas

Python: one hot encoding pandas

Introduction to One-Hot Encoding When we want to convert categorical data into a numerical format we use One Hot encoding which can be understood by computer. In one hot encoding we create new binary columns for each unique value in categorical features.  In one hot encoding we assign values like 0 or 1 to columns […]

Python: one hot encoding pandas Read More »

How To Use Lambda Function In List Comprehension In Python

How To Use Lambda Function In List Comprehension In Python

Let’s first explore what is lambda function in Python. The lambda function is anonymous. They are small functions without names. In Python normal functions start with the def keyword followed by name. However, the lambda function begins with the lambda keyword followed by the input parameters. Syntax of lambda function: lambda [parameter_list]: expression A parameter

How To Use Lambda Function In List Comprehension In Python Read More »