From 9ea8f66ef3616da94a09e9ae1577b2f54aeeedc4 Mon Sep 17 00:00:00 2001 From: Srihari Thyagarajan Date: Fri, 23 Aug 2024 19:20:45 +0530 Subject: [PATCH] Add logic --- .../One_Hot_Encoding_of_Nominal_Values.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy/One_Hot_Encoding_of_Nominal_Values/One_Hot_Encoding_of_Nominal_Values.py b/easy/One_Hot_Encoding_of_Nominal_Values/One_Hot_Encoding_of_Nominal_Values.py index d65c09a..c89a731 100644 --- a/easy/One_Hot_Encoding_of_Nominal_Values/One_Hot_Encoding_of_Nominal_Values.py +++ b/easy/One_Hot_Encoding_of_Nominal_Values/One_Hot_Encoding_of_Nominal_Values.py @@ -1,7 +1,7 @@ import numpy as np -def to_categorical(x, n_col=None): +def to_categorical(x : np.ndarray, n_col=None): # Your code here pass