Column Transformer in Machine Learning | How to use ColumnTransformer in Sklearn

Column Transformer allows the application of different transformations to different subsets of features, enabling tailored preprocessing for various types of data.
Code used : github.com/campusx-official/1...
============================
Do you want to learn from me?
Check my affordable mentorship program at : learnwith.campusx.in/s/store
============================
📱 Grow with us:
CampusX' LinkedIn: / campusx-official
CampusX on Instagram for daily tips: / campusx.official
My LinkedIn: / nitish-singh-03412789
Discord: / discord
Instagram: / campusx.official
E-mail us at support@campusx.in

Пікірлер: 108

  • @ameerrace2284
    @ameerrace22843 жыл бұрын

    Why have you used fit_transform for test? Shouldn't it be only transform?

  • @campusx-official

    @campusx-official

    3 жыл бұрын

    Yes it's a mistake. Sorry about that

  • @okonkwo.ify18

    @okonkwo.ify18

    Жыл бұрын

    Nope. U fit_transform the data that’s going to be fitted into d model.

  • @mayureshgawai5951
    @mayureshgawai59512 жыл бұрын

    Before: No perfect explanation exists. After: Ok, CampusX is an exception😅

  • @prashantmalik5333
    @prashantmalik5333 Жыл бұрын

    bro, your teaching skills are extra ordinary ... I'm in love with ML because of you... I wonder why your channel isn't on the top while suggesting ML videos .. I think the GOOGLE algorithm needs to improve 🤣 Once again thanks for your videos.

  • @ajaykushwaha4233
    @ajaykushwaha42333 жыл бұрын

    Kitna shandaar aap explain kerte hain, dil garden garden ho gaya. Aam zindagi aur mentos zindagi kabhi nehi bhoole ga. 👌🏻

  • @GamerBoy-ii4jc
    @GamerBoy-ii4jc2 жыл бұрын

    or kch ni pta but Sir apki videos ny meri zindgi zroor mentos bna di. Thanks alot Sir! for this hard work.

  • @kshitiztiwari9275
    @kshitiztiwari92752 жыл бұрын

    Bhai you are good. Specially for we Indians... We know English But Hindi main its so Good and Your content is perfect. Just Perfect. Kudos.

  • @11aniketkumar
    @11aniketkumar8 ай бұрын

    Thank god, I came across this channel. This channel is a hidden gem. Thanks a lot sir.

  • @riteshpatel238
    @riteshpatel2382 ай бұрын

    Good part about your videos is that you not only show the solution but also focus on the pain areas which brings the necessity of a solution.

  • @mrsnoopdoggiedogg
    @mrsnoopdoggiedogg2 жыл бұрын

    You are a legend. Thank you so much. Your teaching concepts are so precise.

  • @vipin2872
    @vipin2872Ай бұрын

    Was looking for this from long time , Thankyou sir for mking this...properly explained

  • @mohammadvahidansari8212
    @mohammadvahidansari82122 жыл бұрын

    You are great sir!! Really you are fabulous teacher..... Your teaching is mind blowing....

  • @mathics2869
    @mathics286927 күн бұрын

    Your videos convert my life from aam Zindagi to mentos zindagi .

  • @alkalinebase
    @alkalinebase Жыл бұрын

    Thankyou so much. It was crystal clear and to the point for a beginner like me.

  • @jamesdsouza4206
    @jamesdsouza4206 Жыл бұрын

    Aam zindagi and CampusX zindagi... I like the way u teach.... Very interesting n informative videos.... Currently my goal is to cover the 100 days ML playlist..... Thanks alot for your efforts sir😊

  • @dauntless4498
    @dauntless44988 ай бұрын

    wtf bro.!!! climex was more interesting than Avengers: End Game. Thank you so much ,.......

  • @kislaykrishna8918
    @kislaykrishna89183 жыл бұрын

    thanku sir❤️ keep on blessing us with your teaching ❤️

  • @jitendratrivedi7889
    @jitendratrivedi78892 жыл бұрын

    Amazing video , love your style of teaching...

  • @kunalpandya8468
    @kunalpandya846811 ай бұрын

    For Aam zindagi section, you used fit_transform for X_test also... It should be only transform na..

  • @Enjoyurlife1789

    @Enjoyurlife1789

    8 ай бұрын

    Yes he committed his mistake in above comments.

  • @sharjeelkhan8225
    @sharjeelkhan8225 Жыл бұрын

    Brother, you made it so easy to understand.

  • @AlayaKiDuniya
    @AlayaKiDuniya2 ай бұрын

    O thaank God. Column transformer saved my life.

  • @dilipgyawali1776
    @dilipgyawali17763 жыл бұрын

    really mentos jindagi well explained ....thank u very much

  • @narendraparmar1631
    @narendraparmar16316 ай бұрын

    Thanks a lot for sharing this precious knowledge.😀

  • @MonkeyDLuffy4885
    @MonkeyDLuffy4885 Жыл бұрын

    Aam zindagi, Mentos Zindagi😂😂 Great Video Nitish Sir❤❤

  • @elyaabbas7216
    @elyaabbas72162 жыл бұрын

    Great just amazing. love it

  • @shivamshaw_07
    @shivamshaw_0712 күн бұрын

    Amazing video.

  • @nikcru
    @nikcru Жыл бұрын

    Beautifully explained... Liked & Subscribed. :)

  • @tejaskamble8731
    @tejaskamble87314 ай бұрын

    10:53 awesome ❤

  • @sonalirajput417
    @sonalirajput4175 ай бұрын

    You are the best...

  • @dimplepassi7731
    @dimplepassi7731 Жыл бұрын

    Very clearly explained

  • @laxminarayana9466
    @laxminarayana94662 жыл бұрын

    Wow good and simple explanation 😇

  • @balrajprajesh6473
    @balrajprajesh6473 Жыл бұрын

    God level teaching!

  • @user-sb4zf1nq6u
    @user-sb4zf1nq6u Жыл бұрын

    kudos to you man!!

  • @saurabhbarasiya4721
    @saurabhbarasiya47213 жыл бұрын

    great explanation .........

  • @saurabhdas2234
    @saurabhdas223429 күн бұрын

    wow , explain so well

  • @anuragshrivastava7855
    @anuragshrivastava78552 жыл бұрын

    Bst vdo bst tutor bst channel ths vdo is awesome

  • @shrirangjage7094
    @shrirangjage7094 Жыл бұрын

    other youtubers : aam zindagi campusx : mentos zindagi

  • @rohitmadke8407
    @rohitmadke8407 Жыл бұрын

    Very well explained... Best resource on youtube... but i have major doubt!! why dont you apply all transformation to data and then split it... why are you splitting it first and then performing transformation?

  • @jayshreedonga2833
    @jayshreedonga2833 Жыл бұрын

    NICE LECTURES THANKS

  • @siddharth4251
    @siddharth4251Ай бұрын

    15:00 __bas yeh ek line aap ki zindagi badal sakta he !!!

  • @AbdulRahman-zp5bp
    @AbdulRahman-zp5bp2 жыл бұрын

    Thanks you 3000 🙂

  • @imrankhan-hi6nq
    @imrankhan-hi6nq2 жыл бұрын

    thank you very much sir

  • @theentertainmentworld3310
    @theentertainmentworld331010 ай бұрын

    Bro is converting our zindgi into mintos zindagi 😅 , thanks for grate explanation

  • @siddhithakur8452
    @siddhithakur84522 жыл бұрын

    Awesome ☺☺

  • @tusarmundhra5560
    @tusarmundhra55608 ай бұрын

    awesome

  • @motivationalfacts4964
    @motivationalfacts49642 жыл бұрын

    What if we have missing values in numeric column and other one has Categorical column? Could we use simple imputer for two times one as for using mean and other one for MODE for handling the categorical missing values?

  • @sameerpandey5561
    @sameerpandey55612 жыл бұрын

    Superb Explanation. You are doing a great job. One of my best channels for learning ML along with Statquest ♥ Please confirm if it is possible to get in touch with you personally and get trained by you?

  • @campusx-official

    @campusx-official

    2 жыл бұрын

    nitish.campusx@gmail.com you can contact me on this email id

  • @whitepanda95
    @whitepanda958 ай бұрын

    😅 Really can be more thankful, you are reason, I feel confident that, I will crack machine learning and also learn upto LLM else I would had drop my transition altogether, thank you very much for motivating me. Already bought course, hope all people also support you with same. 🎉

  • @namirkhan8515
    @namirkhan8515Ай бұрын

    Great Vid

  • @deepanshudutta4443
    @deepanshudutta44432 жыл бұрын

    Sir one confusion,after using columntransformer we get numpy array,when we convert it into dataframe,we get column names like 0,1,2,....how we rename the column name? Because there are lots of column...

  • @yashjain6372
    @yashjain6372 Жыл бұрын

    bhai best

  • @yashkumarcharde535
    @yashkumarcharde5353 жыл бұрын

    Sir, please make a complete tutorial on Machine Learning Algorithm

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw2 жыл бұрын

    Hi Sir, how can we provide column name on the transformed data set ?

  • @eeshananand3773
    @eeshananand3773 Жыл бұрын

    Sir their is a bit mistake you made in your code when i went through github, without using column transformer, when the algorithm were applied in each column, the fit_transform was used in both the training dataset as well as the testing dataset but this is wrong because out test datasets is based on the training dataset, so we cant impose fit_transform function on test dataset based on test dataset

  • @calvinfernandez-hi6ij

    @calvinfernandez-hi6ij

    Жыл бұрын

    I have this question as well as to why are we doing fit_transform on testing data. Should'nt we just be doing transform

  • @ronylpatil
    @ronylpatil2 жыл бұрын

    Sir columns get shuffled when we do column transformer. Is there any impact of this?

  • @sachin2725
    @sachin2725 Жыл бұрын

    Hello Sir, XGBoost is not included in playlist, could you please make a video on XGBoost ?

  • @hassamkafeel
    @hassamkafeel2 ай бұрын

    resulting array from column transfer is not in same order as of dataframe, right? why?

  • @arpittrivedi6636
    @arpittrivedi6636 Жыл бұрын

    🤩Wow

  • @umasharma6119
    @umasharma61192 жыл бұрын

    🔥🔥🔥🔥

  • @TheKumarAshwin
    @TheKumarAshwin17 күн бұрын

    Voiii yaauuuuu voiii yaauuuuu Voiii yaauuuuu voiii yaauuuuu.. DADDU!!💡

  • @readbhagwatgeeta3810
    @readbhagwatgeeta3810 Жыл бұрын

    What is the difference in using np.hstack and using np.concatenate? 🤔

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw2 жыл бұрын

    I have a doubt in data preprocessing. First we remove outlier --> Feature scaling --> Gaussian Distribution or remove outlier --> Gaussian Distribution --> Feature scaling , kindly help.

  • @mdyounusahamed6668
    @mdyounusahamed6668 Жыл бұрын

    I would like to thank you for making such awesome videos. But here, you used the fit_transform() method with the test dataset. Isn't it transform()?

  • @tejaskamble8731

    @tejaskamble8731

    4 ай бұрын

    No he fit_transform only training data 14:57

  • @noone0978
    @noone0978Ай бұрын

    sir can't we use label encoding in gender because we only have two types. male and females, just like you said email classification as spam and non spam? answer = NO, because label encoding is done on y axis and not on x i.e on output and not input

  • @JavedKhan-nr2oo
    @JavedKhan-nr2oo2 жыл бұрын

    Sir LabelEncoder kaise lagaye gay

  • @uf9927
    @uf99273 ай бұрын

    where can I get the oneNote file?

  • @samikkzz
    @samikkzz Жыл бұрын

    Can anyone tell me how does column transformer know columns of which data frame to transform as it is not passed in any argument of ColumnTransformer()

  • @maza.tu.h
    @maza.tu.h3 ай бұрын

    Column names are not shown after column transformation. Any solution for this?

  • @nagmachoudhary4879
    @nagmachoudhary4879 Жыл бұрын

    How did we know that 80 rows comes in training data and 20 rows for test data ....i am confused sir please explain

  • @user-zb5zi3ll3g
    @user-zb5zi3ll3g2 ай бұрын

    What is logic behind multicollinearity, and you drop='first'

  • @Engineer884
    @Engineer8845 ай бұрын

    9:45 you didn't fit the age column, is it correct?

  • @anshulsharma7080
    @anshulsharma7080 Жыл бұрын

    Bhaiya m is series ko complete to kr lunga but kya as a associate professional y mujhe help krega??

  • @tyetc206prathamsaboo2
    @tyetc206prathamsaboo25 ай бұрын

    Anyone getting concatenation error? all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 20 and the array at index 1 has size 80

  • @user-xe5xq8pt9j
    @user-xe5xq8pt9j2 ай бұрын

    Sir updated sklearn mein sparse ko remove kar dia gaya hai.

  • @piyudhanwate26
    @piyudhanwate262 жыл бұрын

    from where I can download all datasets you used in all sessions??

  • @campusx-official

    @campusx-official

    2 жыл бұрын

    From my github account

  • @tejaskamble8731
    @tejaskamble87314 ай бұрын

    Aam Zindagi 7:08 😢 Mentos Zindagi 10:53 ❤

  • @pritishpattnaik4674
    @pritishpattnaik4674 Жыл бұрын

    I like the Mentos Zindegi😅

  • @Star-xk5jp
    @Star-xk5jp5 ай бұрын

    day2-date:10/1/24

  • @mahender2517
    @mahender25172 жыл бұрын

    just one small doubt, would be great if anyone can clear. Why to train test split first and then do column transform separately for both train and test sets.We can also first transform the sets and then split the set into train and test

  • @rolitrivedi3190

    @rolitrivedi3190

    Жыл бұрын

    Simply because train test split should always be done before any transformation. Test data is something we should not see beforehand otherwise the result may not be right

  • @MRAgundli
    @MRAgundliАй бұрын

    done

  • @limjuroy7078
    @limjuroy70782 жыл бұрын

    Could you provide English subtitles please!!! 🥺🥺🥺 Quite difficult for me to understand since I am not Indian

  • @purushottammitra1258
    @purushottammitra12582 жыл бұрын

    In 14:53 why not fit_transform is used with xtest??

  • @campusx-official

    @campusx-official

    2 жыл бұрын

    Because it is already fitted with the training data

  • @purushottammitra1258

    @purushottammitra1258

    2 жыл бұрын

    @@campusx-official but at 7:38 x_test_fever = si. fit_transform..?? Also, x_test_cough=oe.fit_transform..?? Pls explain?

  • @purushottammitra1258

    @purushottammitra1258

    2 жыл бұрын

    Is it a typo??

  • @Sara-fp1zw

    @Sara-fp1zw

    2 жыл бұрын

    @@purushottammitra1258 yes

  • @maaleem90
    @maaleem90 Жыл бұрын

    I am sure this guy is from telangana, most probably from hyderabad

  • @laxmanbafna3127
    @laxmanbafna31274 ай бұрын

    mentos zindagi is best 🤣🤣

  • @BIPLAVKANT
    @BIPLAVKANT2 жыл бұрын

    You have given the ends in the video only in array format.. do not convert to data frame.

  • @mukeshnayak7984

    @mukeshnayak7984

    Жыл бұрын

    how to finally convert to dataframe?

  • @sameer9045
    @sameer9045 Жыл бұрын

    aam zindagi 😁😁😁🤣🤣

  • @rohinijadhav744
    @rohinijadhav7442 жыл бұрын

    mentos zindagi......hehe

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw2 жыл бұрын

    Hi Sir, maine ismein N frequent label wala concept ismein add kiya hai. Kindly let me know is my approach sehi hai ? cat=df['brand'].value_counts() threshold=100 repl=cat[cat

  • @dhanushraj3697
    @dhanushraj3697 Жыл бұрын

    please use a little bit of English on your next videos.

  • @arkophredy6836
    @arkophredy6836 Жыл бұрын

    I guess it would be ideal you explained in English so some of us could understand. very unfortunate

  • @JourneytoWINover_PORN
    @JourneytoWINover_PORN5 ай бұрын

    how can i use your dataset i mean how to download it

  • @ajaykushwaha4233
    @ajaykushwaha42333 жыл бұрын

    Kitna shandaar aap explain kerte hain, dil garden garden ho gaya. Aam zindagi aur mentos zindagi kabhi nehi bhoole ga. 👌🏻

  • @heetbhatt4511
    @heetbhatt45119 ай бұрын

    Thank you sir

  • @shreekanth4068
    @shreekanth40683 жыл бұрын

    sir,does SimpleImputer default takes mean value then how can it we deal with mode

  • @campusx-official

    @campusx-official

    3 жыл бұрын

    kzread.info/dash/bejne/n3eAlNqFcqfdaLA.html

  • @shubhamgosain4534
    @shubhamgosain45343 жыл бұрын

    Thank you sir

Келесі