Data Cleaning Tutorial | Cleaning Data With Python and Pandas

แชร์
ฝัง

ความคิดเห็น • 136

  • @anmol_seth_xx
    @anmol_seth_xx 2 ปีที่แล้ว +27

    First of all thanks to you,
    I learned ffill, bfill and interpolate functions from here.
    But it's recommended from many professionals that missing values should be imputed with mean, median & mode.

  • @kaustubhjain7066
    @kaustubhjain7066 3 ปีที่แล้ว +26

    the chill moment when he codes and sips up coffee, cool man great work !!!

  • @YOGIT_Singh
    @YOGIT_Singh 2 ปีที่แล้ว +3

    Bro, you are Doing such great work..
    The way you are explaining things is excellent and easy to understand.
    Kudos to you .

  • @kurosaki2510
    @kurosaki2510 2 ปีที่แล้ว +17

    Could you make a tutorial on Big Data as well, for situations with e.g. 500k rows and 200 columns where you don't see all of your data and don't know what kinds of Nan values to expect and therefore can't name them textually? Big thanks in advance :)

    • @oktafajarandrian7352
      @oktafajarandrian7352 2 ปีที่แล้ว

      Up

    • @Alexander-ms2ct
      @Alexander-ms2ct ปีที่แล้ว +2

      It’s a **kwark called “chunksize=“ the integer passed to it is the amount per chunk. So if you select 1000 and have a df of 500k. It would load 500 times. In pieces

  • @ravitejapavuluri945
    @ravitejapavuluri945 3 ปีที่แล้ว +5

    You said everything but but missed the one I am waiting for is filling NaN with mean or media values.

  • @sifar1857
    @sifar1857 2 ปีที่แล้ว

    Great tutorial! No need to hesitate on referring to the code snippets btw… I don’t think any sane person watching this has the expectation for you to memorise a to z what you want to articulate…

  • @michaelchapisa3709
    @michaelchapisa3709 2 หลายเดือนก่อน

    I got lost at the very beginning, from the "print(os.listdir())" what i got as my output is very different from what you got

  • @kdausu90
    @kdausu90 3 ปีที่แล้ว +2

    This guy is chill af

  • @sammy0722
    @sammy0722 4 ปีที่แล้ว +2

    Nice way of explaining. One request, do make one video on Outlier removal.
    Thanks.

    • @SoumilShah
      @SoumilShah  4 ปีที่แล้ว +1

      you got it !! will add on my to do List

  • @Young-Prof
    @Young-Prof 3 หลายเดือนก่อน

    This is amazing. I learned a lot. I want to come to India to study Data Analytics

  • @shyamkumar-fh2fh
    @shyamkumar-fh2fh 4 ปีที่แล้ว +3

    Can u tell about yourself... The company u are working and can u give some tips to get a job in data science field as a fresher

  • @slayergaming1852
    @slayergaming1852 ปีที่แล้ว +1

    This video really helped me a lot, but I still got more to understand. I've zero basic knowledge on this. I'm working on a thesis which needs some coding to complete. I've few questions to what you've explained in this video;
    1. What if there are lot of dataset and how do you define the missing value for each?
    2. What was that in the missing value you defined "np.nan" ?
    As I said earlier, I'm working on a project which is about human-in-the-loop code. Initially I'll be given the dataset and have to figure out a code to include human for feedback from system (Reinforcement Learning). I would like get your response, and if possible any helpful idea or suggestions on the project mentioned above.
    Thank you

    • @debanjangg
      @debanjangg ปีที่แล้ว +1

      1. You can use separate lists (with diff variable names,) or a single list as a master list for all the datasets. Depends on the said datasets and the data they contain.
      2. np.nan is the "NaN" value in the dataset, which means Not a Number. So basically the np.nan returns a float object whose value is NaN.
      Hope this helps.

    • @slayergaming1852
      @slayergaming1852 ปีที่แล้ว +1

      @@debanjangg That was helpful. Thanks mate!🤩

    • @luckycreative7418
      @luckycreative7418 11 หลายเดือนก่อน

      1) u can also use unique function to get only unique values
      Example
      df['Customers'].unique
      in the example above u will get all the unique values in the column 'Customers'

  • @sayantikabiswas8739
    @sayantikabiswas8739 ปีที่แล้ว +2

    thanks for teaching ffill, bfill, interpolate and fillna ...it was a great session

  • @sheetalurankar4660
    @sheetalurankar4660 4 ปีที่แล้ว +6

    Explain the more concepts like standardizing, matching, consolidation so we get all idea about data cleaning.

    • @waynefmj
      @waynefmj 3 ปีที่แล้ว +1

      This

  • @eshaal2525
    @eshaal2525 ปีที่แล้ว +1

    Hi...I have na values but tha boxplot is even not showing it null...

  • @littlecreator4838
    @littlecreator4838 2 ปีที่แล้ว +1

    Hi,very nice explanation. I am totally new to python. Can you pls make a tutorial on how to install jupyter and all the other required libraries to perform forecasting.

  • @rommel23nb
    @rommel23nb 2 หลายเดือนก่อน

    Thanks Mr. Shah--- I used these commands to prepare a cheat sheet for data cleaning--- regards

  • @thewhiskybottle4641
    @thewhiskybottle4641 ปีที่แล้ว

    Take the ads off please, thanks, great tutorial by the way.

  • @gideonopoku-gyamfi1114
    @gideonopoku-gyamfi1114 ปีที่แล้ว

    So please which do you think is more efficient to be used without changing the accuracy of the data

  • @harshvardhansahay3864
    @harshvardhansahay3864 ปีที่แล้ว

    This video has really me understand the data cleaning process. Thanks Man.

  • @santhoshbharath2910
    @santhoshbharath2910 2 ปีที่แล้ว

    hats off to you man, you really made my day, you gave me a good confidence today, once again thankyou so much sir

  • @Ayanshedipelly2312
    @Ayanshedipelly2312 3 หลายเดือนก่อน

    How to do interpolation for categorical variable

  • @GracefulTalesPluto
    @GracefulTalesPluto 11 หลายเดือนก่อน

    what is the use of ffill? Isn't it data corruption? filling nulls with values from above rows

  • @Nitswits007
    @Nitswits007 4 ปีที่แล้ว +1

    Would you be able to provide mentorship. I have started learning DS . Want to keep moving in a direction .jyst don't stop due to coding lag.

  • @jaiprakashlic484
    @jaiprakashlic484 ปีที่แล้ว +1

    BRO YOU SHOULD HAVE UPLOADED CSV FILE AS WELL.

  • @rashigupta5611
    @rashigupta5611 2 ปีที่แล้ว

    How to get how many type different type of value is there to put in na_values? I mean to say the value you have mentioned for missing_value.. how you are getting that.. we cant check the file if that has huge data

  • @nazeer9933
    @nazeer9933 ปีที่แล้ว

    The dataset which you have is having fewer instances
    what if we have thousands of rows of data how to find Nan, and Na there in the dataset ...?
    if you see this please respond ASAP

  • @sonalikoli384
    @sonalikoli384 2 ปีที่แล้ว

    i have question i wrote print(os.listdir()). but i got many files that is inside my jupyter. may i know how can i import my csv file that i have clean.

  • @aliaitazaz7040
    @aliaitazaz7040 4 หลายเดือนก่อน

    Learnt something new, THANK YOU!

  • @ArchieSharma-x4r
    @ArchieSharma-x4r ปีที่แล้ว

    Hii Soumil, right now I'm working on language translation project for that I have collected the data, but I'm facing preprocessing data could you please help me with that.

  • @bloom6874
    @bloom6874 ปีที่แล้ว

    here values in missing_values list are case-sensitive or case-insensitive?

  • @bhawitbalodi4324
    @bhawitbalodi4324 2 ปีที่แล้ว

    Pls can you tell me that from where you bought that LAPTOP stand? Pls attach link in comment

  • @RaviPrakash-ml8qb
    @RaviPrakash-ml8qb ปีที่แล้ว

    Very useful video keep it up champ

  • @SONALIKUMARI-is9jc
    @SONALIKUMARI-is9jc 4 ปีที่แล้ว +1

    What if the file is not there on which we want to work?

  • @Karthik-m9j
    @Karthik-m9j ปีที่แล้ว

    essentially you explained it very well

  • @jayakhanal1720
    @jayakhanal1720 3 ปีที่แล้ว

    how to cleaning data that is TZAN dataset from kaggle for,music genre classification using cnn?

  • @spyder5204
    @spyder5204 2 ปีที่แล้ว

    Good and nice explaination

  • @leticiavillatima1844
    @leticiavillatima1844 4 หลายเดือนก่อน

    AttributeError Traceback (most recent call last)
    Cell In[7], line 1
    ----> 1 pd_cleaned = pd.dropna()
    AttributeError: module 'pandas' has no attribute 'dropna
    i can't find drop na

  • @crazystuff5854
    @crazystuff5854 3 ปีที่แล้ว

    Superb broo Rock on

  • @shilpachowdhury8860
    @shilpachowdhury8860 2 ปีที่แล้ว

    Sir, by running the data cleaning code in jupyter notebook by following the same code instruction given by u, when i run the code in the output it is not showing unnamed:0 temperature humidity & in my jupyter system it is showing such as v1 &v2 in the output.Why it is so?can u plz explain.

    • @deepthi5970
      @deepthi5970 ปีที่แล้ว

      I also faced the same problem. When we creating
      a new csv file there is no unnamed 0 : column... But if we saved the same file as csv into a folder it will create a new column lke unnamed 0:
      If we read this data the output will be like in this video.. If repeated each time one extra column will add. For avoiding use index= False while saving a code. It will work

  • @harrymary100
    @harrymary100 3 ปีที่แล้ว

    Nice tutorial keep it up

  • @ShresthBhakta
    @ShresthBhakta ปีที่แล้ว

    Thanks Soumil, really helpful !!

  • @husnarazool9866
    @husnarazool9866 3 ปีที่แล้ว +1

    How to save the dataset after cleaning process in python?

  • @siddheshbhalerao3152
    @siddheshbhalerao3152 2 ปีที่แล้ว

    sir, facing a issue in a code to convert the variable from object to integer in jupyter notebook:- it shows the error:-invalid literal for int() with base 10: '-'

    • @bloom6874
      @bloom6874 ปีที่แล้ว

      you can typecast object into int

  • @IndianHacker-hisBest
    @IndianHacker-hisBest ปีที่แล้ว

    bro, could you please share the dataset in the description ?

  • @enricomendiola9952
    @enricomendiola9952 ปีที่แล้ว

    Hello can you include in this video in cleaning special characters using pandas regular expression?

  • @akashme-ek3vc
    @akashme-ek3vc 2 ปีที่แล้ว

    please donot stop uploading such videos

  • @mahidhar9787
    @mahidhar9787 4 ปีที่แล้ว

    how can we replace using mean, median & mode

  • @minhaaj
    @minhaaj 4 ปีที่แล้ว

    good job

  • @kiranpawar8798
    @kiranpawar8798 7 หลายเดือนก่อน

    What is noisy data

  • @kyleevalencia1827
    @kyleevalencia1827 3 ปีที่แล้ว

    Sir, i'm still new in python and this data cleaning thing. And i want to ask what is 11 in df11 ?? is it some kind of function ?? and i also don't understand the snippet concept

    • @kashyapsantoki4889
      @kashyapsantoki4889 3 ปีที่แล้ว +1

      df11 is just variable you can take anything df11a,df12 df15 anything and snippet is basically a piece of code which he already have

  • @balatechtvm1438
    @balatechtvm1438 ปีที่แล้ว

    Thank you sir. I'm very satisfied

  • @srujangowda8490
    @srujangowda8490 3 ปีที่แล้ว

    5:09 OP

  • @kelikisbiyantoro2518
    @kelikisbiyantoro2518 3 ปีที่แล้ว

    thankyou very much soumilshah, its help for me

  • @rohitsanam8829
    @rohitsanam8829 4 ปีที่แล้ว

    Please make a video outlier treatment and detection

  • @laithdarras6389
    @laithdarras6389 ปีที่แล้ว

    Very helpful

  • @rinkubaria3900
    @rinkubaria3900 ปีที่แล้ว

    So helpful 👌

  • @enricomendiola9952
    @enricomendiola9952 ปีที่แล้ว

    This is a great video😊

  • @samimerk5313
    @samimerk5313 2 ปีที่แล้ว

    Thank you for thr explanation!

  • @darshan7673
    @darshan7673 3 ปีที่แล้ว

    from where i can download this dataset can anyone provide me link

  • @Goal_Huntter_16
    @Goal_Huntter_16 ปีที่แล้ว

    I have to say. "Very Helpful". or print("very helpful") 😂😂

  • @aiswaryacd7419
    @aiswaryacd7419 2 ปีที่แล้ว

    How install Android phone Jupiter notebook

  • @rakshansadhu2073
    @rakshansadhu2073 3 ปีที่แล้ว

    Loved it man

  • @mayukbasu7228
    @mayukbasu7228 4 ปีที่แล้ว +1

    Where can I get the data set?

  • @shafiqahmed1976
    @shafiqahmed1976 3 ปีที่แล้ว

    data.fillna({"P11,":NEGATIVE}) NameError: name 'NEGATIVE' is not defined
    ?? Please help me ?what can I can do??

    • @leavemealone3198
      @leavemealone3198 3 ปีที่แล้ว

      Maybe you didn’t install the libraries?

  • @swetathakur8144
    @swetathakur8144 5 ปีที่แล้ว

    Hello sir, I got an assignment , I am having difficulty in understanding the question , can u help , plz ... Plz reply

    • @SoumilShah
      @SoumilShah  5 ปีที่แล้ว

      Sweta Thakur what’s is question. ?

    • @swetathakur8144
      @swetathakur8144 5 ปีที่แล้ว

      @@SoumilShah it's a long question based on unsupervised problem .. can I have your email id, so that I can contact you

    • @SoumilShah
      @SoumilShah  5 ปีที่แล้ว +3

      Sweta Thakur I won’t solve your assignment I will only tell you what to do
      Usually I’m free on sat and Sunday
      Shahsoumil519@gmail.com

  • @BeenaHari-w6d
    @BeenaHari-w6d 7 หลายเดือนก่อน

    Could you please send me the data.csv file

  • @abhinavsingh4208
    @abhinavsingh4208 3 ปีที่แล้ว

    Thanks for this video !

  • @maniteja2167
    @maniteja2167 4 ปีที่แล้ว

    nan palce -1 how to clean that

  • @aditisinghxd
    @aditisinghxd 3 ปีที่แล้ว +1

    This was really useful. Thankyou!

  • @இயற்கைஉணவுசமையல்நம்மாழ்வார்

    G real time project need and submitt to clien,

  • @sabbirahmmed7161
    @sabbirahmmed7161 2 ปีที่แล้ว

    Thanks a lot ❤️

  • @harshalkshirsagar7618
    @harshalkshirsagar7618 ปีที่แล้ว

    yo thanks a lot

  • @marouaneyoussfi3560
    @marouaneyoussfi3560 4 ปีที่แล้ว

    thank you

  • @dawoodahmed8020
    @dawoodahmed8020 2 ปีที่แล้ว

    Hello

  • @chaitanyachavan7540
    @chaitanyachavan7540 ปีที่แล้ว

    Try avoiding that drinking coffee in between That's Gross

    • @SoumilShah
      @SoumilShah  ปีที่แล้ว

      Thanks video you watching 4 years ago quality of my videos has been improved a lot since then

  • @muhammadfahad847
    @muhammadfahad847 2 หลายเดือนก่อน

    Very bad explain

  • @sabaansari-dd5xc
    @sabaansari-dd5xc ปีที่แล้ว

    Fill na, drop na, then fill averrage

  • @comptegmail273
    @comptegmail273 2 ปีที่แล้ว +1

    Hello sir, thank you so much for the tutorial. I'm actually stuck since my source in a CSV file. Except that sadly the file I'm working is extremely complex with indefinete columns since my main columns are repeated everyday based on the date. I've been stuck on this problem since over a week. Is there a way I could reach out to you and have your mail to maybe help solve this problem? Thanks a lot in advance.

  • @SAJJAPUSHYANTHRA
    @SAJJAPUSHYANTHRA 2 ปีที่แล้ว

    sns.heatmap(df.isnull(),yticklables=False,annot=True)

  • @alishalbayev264
    @alishalbayev264 4 ปีที่แล้ว +5

    I just started watching but I see that you are really good man, thanks

  • @ganeshkumarpatel
    @ganeshkumarpatel 4 ปีที่แล้ว +2

    Please explain to fiilna or replace zero with mean value by groupby... Means you have 3 groups in data frame and you want to fillna with respective to group mean

  • @AyaanKhan-rh5vx
    @AyaanKhan-rh5vx 3 หลายเดือนก่อน

    I have a csv file and when i am using concat function it automatically name unnamed group 1,2,3... Also the alignment gets messy with songle line of code
    How to fix it

  • @minapatil185
    @minapatil185 หลายเดือนก่อน

    New learned null values like nan, na Nan something new thought us. Thank u...

  • @world52love
    @world52love 2 หลายเดือนก่อน

    how to handle zero values in csv file and how to fill those values

  • @vandanasharma.sharma33
    @vandanasharma.sharma33 4 ปีที่แล้ว +1

    Can't we add any value to these NaN?

  • @chaitanyaparmar8639
    @chaitanyaparmar8639 2 ปีที่แล้ว

    bro can u give this data set? asap

  • @NaveenKumarsoma
    @NaveenKumarsoma 4 ปีที่แล้ว +1

    why you have used np.nan in the mission_values?

  • @shreyamatade409
    @shreyamatade409 ปีที่แล้ว

    Please provide the csv file

  • @kamalkantmahour9641
    @kamalkantmahour9641 4 ปีที่แล้ว +1

    Sir, please tell me the book from where I can learn all these concepts and programming skills required for this.

  • @techtalk9352
    @techtalk9352 2 ปีที่แล้ว

    Can u send csv file link

  • @angshumanbardhan3729
    @angshumanbardhan3729 4 ปีที่แล้ว +1

    Thank you for making this video.

  • @deutschvalley3574
    @deutschvalley3574 3 ปีที่แล้ว

    How i can handle float values 2.o or 0.04576 kindly let me i am doing a research using a big datasets

  • @greeshmatejamyna
    @greeshmatejamyna ปีที่แล้ว

    i can use excel for it right ? my work will be more easy kindly persuade me y i have to use python instead of excel here

  • @kunalkishore5260
    @kunalkishore5260 2 ปีที่แล้ว

    what to mention in na_values if we dont know the missing vlaues or there are hundreds of different missing values

  • @poojakumarirollno9880
    @poojakumarirollno9880 ปีที่แล้ว

    Great job sir . Thank you so much for great explaining . Can u make more videos on data analytics

  • @alinajaved2165
    @alinajaved2165 2 ปีที่แล้ว

    I need your help please please...how it work in automatically cleaning data?

  • @ranamahrous7814
    @ranamahrous7814 3 ปีที่แล้ว

    i want messy dataset for practicing do u know where can i find one? or do u have one ?

  • @laibakhan1835
    @laibakhan1835 ปีที่แล้ว

    Great job well done n thanx a lot ...I explained v well

  • @thekras177
    @thekras177 ปีที่แล้ว

    I refer to using mean but thank you it was helpful