Tutorial 6- Pandas,Reading CSV files With Various Parameters- Part 2

Поделиться
HTML-код
  • Опубликовано: 11 июл 2024
  • Hello All,
    Welcome to the Python Crash Course. In this video we will understand about Pandas library, how to read CSV files and play with different parameters
    github url : github.com/krishnaik06/Machin...
    Support me in Patreon: / 2340909
    Connect with me here:
    Twitter: / krishnaik06
    Facebook: / krishnaik06
    instagram: / krishnaik06
    If you like music support my brother's channel
    / @ultralifeproject
    Buy the Best book of Machine Learning, Deep Learning with python sklearn and tensorflow from below
    amazon url:
    www.amazon.in/Hands-Machine-L...
    You can buy my book on Finance with Machine Learning and Deep Learning from the below url
    amazon url: www.amazon.in/Hands-Python-Fi...
    Subscribe my unboxing Channel
    / @krishnaikhindi
    Below are the various playlist created on ML,Data Science and Deep Learning. Please subscribe and support the channel. Happy Learning!
    Deep Learning Playlist: • Tutorial 1- Introducti...
    Data Science Projects playlist: • Generative Adversarial...
    NLP playlist: • Natural Language Proce...
    Statistics Playlist: • Population vs Sample i...
    Feature Engineering playlist: • Feature Engineering in...
    Computer Vision playlist: • OpenCV Installation | ...
    Data Science Interview Question playlist: • Complete Life Cycle of...
    You can buy my book on Finance with Machine Learning and Deep Learning from the below url
    amazon url: www.amazon.in/Hands-Python-Fi...
    🙏🙏🙏🙏🙏🙏🙏🙏
    YOU JUST NEED TO DO
    3 THINGS to support my channel
    LIKE
    SHARE
    &
    SUBSCRIBE
    TO MY RUclips CHANNEL

Комментарии • 132

  • @rizf800
    @rizf800 Год назад +3

    i tried watching other python playlists but your way of explanation is so easy to understand thank you for this video ❤❤❤

  • @arandomwho
    @arandomwho 2 года назад +3

    i really dont need to academic courses with your course. so thankful. i wish more course were on your channel. for software engineering🤩

  • @debadattamishra5160
    @debadattamishra5160 4 года назад +27

    I wish, I could have liked 1000 times, but I will make sure to hit like on 514 videos till now and upcoming videos. Watched a lot of informative videos, then completed Statistic playlist of yours, now here on ML list. Hope to end this with a lot of practice till the end of this month.

    • @aymanmohammed6723
      @aymanmohammed6723 2 года назад +2

      Hey there, how far have you reached in your data science journey? Also is it worth it to watch his videos to learn data science?

  • @vinayak254
    @vinayak254 2 года назад +2

    thank you krish naik for your support to all the beginners

  • @subhashmurugesan5442
    @subhashmurugesan5442 3 года назад +4

    i regularly watch your channel i can understand your way of presenting ,but i have not viewed these playlist as i am doing hit or trail job,but these gave me an idea(minute points) especially the error part...

  • @roushanraj2654
    @roushanraj2654 4 года назад +10

    Dataset of mercedez is here: www.kaggle.com/swetashetye/mercedesbenz-greener-manufacturing

    • @AjayChauhan-vs7do
      @AjayChauhan-vs7do 3 года назад

      @@payaldhekwar2717 download the zip file in any of your location and then upload that file in the home page of jupyter notebook, I hope it will work

    • @zainabzafari2336
      @zainabzafari2336 7 месяцев назад

      Thank you

  • @singhji1071
    @singhji1071 4 года назад +4

    Nice share sir.
    Thanks a lot !!!

  • @preetbenipal1034
    @preetbenipal1034 4 года назад +5

    your tutorials are easy to understand Krish ...thank you brother

  • @thehope7689
    @thehope7689 3 года назад +2

    thank you so much sir for such a nice explanation

  • @brijrajsinhgohil7417
    @brijrajsinhgohil7417 3 года назад +4

    Hi Can you suggest me that in which order should I go through your playlist to make my final year project (Pneumonia Detection using Machine Learning) from scratch ?

  • @niranjankotwal1666
    @niranjankotwal1666 4 года назад +8

    Link for dataset?

  • @rishabdua3349
    @rishabdua3349 2 года назад +1

    pretty much simple, pretty much easy😀😀

  • @joyprokash4013
    @joyprokash4013 Месяц назад

    Excellent Sir!

  • @louerleseigneur4532
    @louerleseigneur4532 3 года назад

    Thanks a lot Krish

  • @shreedharchavan7033
    @shreedharchavan7033 2 года назад +1

    awesome🔥

  • @estherjohn3191
    @estherjohn3191 2 года назад +2

    Hello
    Thank you for your lectures.
    Please at 5:53, what's the name of the x1-x8 columns? I didn't get the name correct. Thank you 🙏

  • @sidpoosala6721
    @sidpoosala6721 4 года назад

    thanks its reakky help to me sir

  • @shraddhaverma4111
    @shraddhaverma4111 2 года назад +1

    thank you sir for your hardwork !!! Can you also do a video on healthcare EDA by python !

  • @AbhishekPandey-id8nb
    @AbhishekPandey-id8nb 4 года назад +5

    Sir if we remove the comma's in the last of the 2nd and 3rd col in data .... 4 and 8 the values will not be assigned as index then... but this mistake is good we got one use acse of index_col ..i m enjoying these videos thanks

  • @AbhishekPandey-id8nb
    @AbhishekPandey-id8nb 4 года назад +1

    also if we write column a also in usecol then the values 4 and 8 will not be used as index

  • @MuhammadSabahatNS
    @MuhammadSabahatNS 5 дней назад

    Let's understand StringIO concept
    a multi-line string data that mimics the contents of a CSV file. Each line represents a row in the CSV, with columns separated by commas. The
    denotes a newline, so the string represents a table with columns col1, col2, col3 and two rows of data.
    The StringIO module from the io library in Python is used to treat a string as a file-like object. This is useful because pd.read_csv expects a file-like object as an argument, so we need to convert our string data into a file-like object.

  • @akshaypratap7390
    @akshaypratap7390 4 года назад +1

    Sir can u plz tell about edwisor
    Is it good or not

  • @archanaashok1980
    @archanaashok1980 2 года назад +1

    Didn't understand the concept " df['a'][1] " , because the row should come first and then the column right? How come it is interchanged here?

  • @suvarnadeore8810
    @suvarnadeore8810 3 года назад

    Thank you sir

  • @sandeepdesale6395
    @sandeepdesale6395 2 года назад +1

    hello sir, can you please tell me where i can get .csv files for practice?

  • @archanaashok1980
    @archanaashok1980 2 года назад +1

    What to download in kaggle datasets. Please provide link of the dataset you used

  • @toddfodd7198
    @toddfodd7198 4 года назад +5

    Hi Krish,
    thanks for the awesome videos. Can you tell plz when 2 months paid ML program will start??

  • @itzranchal
    @itzranchal 2 года назад +1

    Sir....where will i get the csv file ....i mean the mercedes benz data?
    i searched it in Google but i did not get it.

  • @sonaliborde9870
    @sonaliborde9870 2 года назад +1

    Can you help read csv file on databricks using panda
    df=pd.read_csv('mercedesbenz.csv') doesn't work, though with filestore full path
    pandas_df = pd.read_csv("/dbfs/FileStore/tables/mercedesbenz.csv") - this is also not working

  • @tanyajayanti1489
    @tanyajayanti1489 Год назад +1

    In kaggle the whole dataset is divided into train and test unable to import it as shown in the video . Can anyone suggest me what to do?

  • @greatkingisback
    @greatkingisback 2 года назад +1

    Hi Krish,
    new_df = pd.read_csv("C:\Users/911.csv")
    ^
    SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
    I'm getting this kind of error I tried all the possible ways like keeping r before "c:/" and changing the black slashes to forward and copied the path and pasted their and still I'm not getting the error resolved.

  • @soujanyakodukula7102
    @soujanyakodukula7102 3 года назад +2

    Krish Naik Sir I am following your videos regularly can you please send me the dataset i have used the dataset that people kept in comments but in that df.y is not working and there are no values of 'y' in it so please send it sir

  • @TheGanji26
    @TheGanji26 2 года назад

    i am unable to download the mercedez file, please help me. on clicking the download it is taking me to a tab and it shows all 0s and 1s

  • @Vertical_ig
    @Vertical_ig 2 года назад +1

    10:28 ..without using ' ; ' also , it shows the same output. what is need of ' ; ' . CAN YOU EXPLAIN

  • @ankurmalik7388
    @ankurmalik7388 3 года назад +2

    plz provide the link of this data sett

  • @wellwhatdoyakno6251
    @wellwhatdoyakno6251 2 года назад

    I am getting an error for the 29[ ] input please can someone help? It says exception found another exception.

  • @abhiruwijesinghe2677
    @abhiruwijesinghe2677 2 года назад +2

    Time 15:23
    I am facing as issue. i can't use the last column in any of my code.
    Like i have written:
    pd.read_csv(StringIO(data), usecols=['col1','col2'])
    The error reads:
    ValueError: Usecols do not match columns, columns expected but not found: ['col2']
    Can anyone help me out with this?

  • @SaiKrishna-qx9vf
    @SaiKrishna-qx9vf 3 года назад +1

    Hi Krish,
    how to load CSV file in django Controller ????????.

  • @riyaz8072
    @riyaz8072 2 года назад +1

    It would have been better if you have shared that excel file.. Has he already shared it somewhere? If yes, please help me out guys..!!

  • @hometvfirestick
    @hometvfirestick 2 года назад

    thanks

  • @akashnidgundi61
    @akashnidgundi61 11 месяцев назад

    bhai

  • @shreyagupta5819
    @shreyagupta5819 4 года назад +3

    Sir help me out .i am facing a problem .if I am applying any operation on data it work on only first column .e.g like if I want to change data type of col1 then it is successful excuted but if I apply same Operation on other col then it shows some error "don't match columns "

  • @asapannarakesh938
    @asapannarakesh938 4 года назад +11

    Why are you not working on deployment playlist. A full playlist will be truly awesome. And thank you for your channel. Helps me a lot

    • @killersawant
      @killersawant 3 года назад

      He is not teaching only properly....i had to check other channels

  • @GauravParashar5164
    @GauravParashar5164 4 года назад +1

    ThankYou Sir. Really these videod are very helping. Sir i have a small doubt about working of panda and numpy. How we are able to call the different methods with the help of directory name. Like np. anyfunction. However np is numpy alias and numpy is package not module.

    • @farazahmed1668
      @farazahmed1668 3 года назад +1

      I don't know why you are trying to call a package with a directory name instead of giving a short name like np.

  • @stutisrivastava2925
    @stutisrivastava2925 2 месяца назад

    It's showing error in the last section (url to csv) Can anyone tell why so and how to take url and convert to csv

  • @simanchalpatnaik2566
    @simanchalpatnaik2566 4 года назад +2

    Hey Krish..Thanks for the lecture...Could you please make a small video on how to use GitHub to get/work on some dummy projects

    • @dhwajsharma
      @dhwajsharma 3 года назад

      There are already many vids on that.

  • @sidkapoor9085
    @sidkapoor9085 3 года назад +1

    good video overall but some small mistakes and misunderstandings in inbuilt functions.

  • @vashitvaraj8717
    @vashitvaraj8717 3 года назад +1

    can anyone please provide me the link for the data set of mercedes benz?

  • @izharhaq735
    @izharhaq735 4 года назад

    Hi Krish, i think you haven't uploaded few videos of python like class-5 part 2 and class-6 part 1. Getting difficulty to follow the subject. Please upload missing videos as well thanks

    • @habilmohammed5127
      @habilmohammed5127 4 года назад

      Hi, Tutorial 6 Part 2 is the continuation of Tutorial 5 Part 1 if am not mistaken. :)

  • @karthikeyanc7124
    @karthikeyanc7124 4 года назад +2

    According to logic at 23:15 on row index, at 21:31 the values in first column -4,8 should be displayed as row index right ? why it did not happen?

    • @balasaiallagadda2791
      @balasaiallagadda2791 4 года назад +1

      Yeah even I faced the same problem

    • @rohanmehra1695
      @rohanmehra1695 4 года назад +2

      @@balasaiallagadda2791 you need to avoid putting comma at the end of third item in each row.

    • @VinayakNagriyo
      @VinayakNagriyo 3 года назад +1

      @@rohanmehra1695 can you explain the logic behind that please?

    • @sidkapoor9085
      @sidkapoor9085 3 года назад +1

      @@VinayakNagriyo read_cvs assumes data entry after every comma. so it takes u NaN as the third entry after the blank third comma.

  • @ankitsaxena565
    @ankitsaxena565 4 года назад +1

    Anybody solution, # One or more of the following lines contains an error
    # Correct it so that it runs without producing syntax errors
    birthday = "2017-07-14"
    case_id = 'DATACAMP!123-456'

  • @roushanraj2654
    @roushanraj2654 4 года назад +2

    Time 15:23
    Sir, am facing as issue. i can't use the last column in any of my code.
    Like i have written:
    pd.read_csv(StringIO(data3), usecols=['Qt','Taste'])
    So here, error comes in place of 'Taste' because it was the last column.
    Except last column, every column works fine. Why?
    The error reads:
    ValueError: Usecols do not match columns, columns expected but not found: ['Taste']
    Can anyone help me out with this?

    • @pakhigupta2869
      @pakhigupta2869 3 года назад +2

      Verify if there is a space at the end of the line in CSV file. If there is a space the column name is not 'Taste', but 'Taste '

    • @thakurmahendarsingh3095
      @thakurmahendarsingh3095 3 года назад +1

      Even I had faced the same issue with usecols

  • @sagarshende192
    @sagarshende192 4 года назад +4

    Where do we get 'Mercedesbenz' dataset from?

  • @satyasreegarapati6605
    @satyasreegarapati6605 9 месяцев назад

    how to download that dataset

  • @yellankinaveen2496
    @yellankinaveen2496 Год назад +1

    sir please provide dataset link

  • @sanandapodder5027
    @sanandapodder5027 4 года назад +3

    Sir Your videos are very helpful, Thanks a lot.Sir I have one request, please make a video on how to convert json to csv/dataframe.

    • @MohammadAli-ne7cv
      @MohammadAli-ne7cv 4 года назад +1

      already that video is available after this one

  • @vandinibansal9815
    @vandinibansal9815 Год назад

    cannot import stringIO from .....getting this error while importing

  • @anmolj
    @anmolj 4 года назад +2

    Hi sir is macbook pro 15 inch which has 4gb graphics card good for deep learning? We can also connect external gpu with it? I am planning to buy it since my current laptop is slow for deep learning as it only has integrated gpu and 12 gb ram which is slow for training models...

    • @someonesomebody716
      @someonesomebody716 4 года назад +1

      12 gb ram is slow? 😵

    • @anmolj
      @anmolj 4 года назад +1

      @@someonesomebody716 For deep learning it is slow. It takes about 30 minutes to train a basic nural network . Although most of the ML algorithms run flawlessly.

  • @aveshnagori8795
    @aveshnagori8795 Год назад

    StringIO is not defined i am getting this in my jupyter notebook can some explain me please what am i doing wrong?

  • @SouLK.P
    @SouLK.P 3 года назад

    files are not able to download from Github

  • @mounikathouda
    @mounikathouda 13 дней назад

    Please provide link for dataset

  • @alipaloda9571
    @alipaloda9571 4 года назад

    how to read multiple file under one variable

  • @nikhatparveen2369
    @nikhatparveen2369 10 месяцев назад

    Is this ml playlist complete

  • @aenuguupendra3502
    @aenuguupendra3502 2 года назад

    Unable to import stringio and bytesio

  • @vaibhavranglani495
    @vaibhavranglani495 3 года назад +1

    did not get how hello, "Bob", nice to see you became one value. We did not escape the comma. We only escaped the double quotes
    data='a,b,
    "hello, \\"Bob\\",nice to see you",5'
    pd.read_csv(StringIO(data),escapechar='\\')

  • @1shan1975
    @1shan1975 2 года назад

    I think usecols with column name is not working anymore

  • @amitpatil6121
    @amitpatil6121 2 года назад

    How and where to download mercedes.csv file

  • @aasthasingh67
    @aasthasingh67 3 года назад +1

    I make handwritten notes...is it equally beneficial?

    • @aadeshpradhan9646
      @aadeshpradhan9646 3 года назад

      i guess practising while learning and commenting the notes part will be easier. you can just ctrl+f you confusions in the future :D

  • @sunnysolanki2460
    @sunnysolanki2460 Год назад

    Not showed how to import StringIO

  • @JacklinSibiyal
    @JacklinSibiyal 4 месяца назад +2

    Day 2 - 17/02/2024

  • @indirajithkv7793
    @indirajithkv7793 2 года назад

  • @lokeshvenkatesan2693
    @lokeshvenkatesan2693 3 года назад

    StringIO(data)- I don't understand by this declaration. Anyone please clarify?

    • @ravigiri_67
      @ravigiri_67 3 года назад +2

      If you have csv file to make it as data frame or to differentiate columns and rows, stringio function will read that csv file and convert it to data frame for user to understand. Simple terms simple representation of csv data or file to dataframe

  • @manikantasai4766
    @manikantasai4766 4 года назад +2

    I was the first to view and like!

  • @harisankar6104
    @harisankar6104 3 года назад

    help needed StringIO() is not working in my jupyter notebook

  • @nakeaparanji2006
    @nakeaparanji2006 4 года назад

    Hello sir,
    I am unable to join your 59 rupees plan. It is showing that card details are wrong.
    Gpay option is also not working.
    So what should I do??

  • @reshulw884
    @reshulw884 4 года назад +1

    my dataset is not loading why??? mercedes one

    • @harikadrona717
      @harikadrona717 3 месяца назад

      how did you get that data set ? Can you provide me the link of it

  • @hruday19
    @hruday19 4 года назад +1

    Hello Mr.Krish,
    Good Afternoon!
    Where is the part 1, as i am not aware of that, can you please share me the part 1.

    • @krishnaik06
      @krishnaik06  4 года назад +1

      Check my playlist

    • @someonesomebody716
      @someonesomebody716 4 года назад +1

      ruclips.net/video/QUClKFFn1Vk/видео.html

    • @hruday19
      @hruday19 4 года назад +1

      @@krishnaik06 ok I will check it.

  • @daspopdsa
    @daspopdsa Год назад

    Time 28:15 i have lots of error pleased help me.

  • @shaswatamukherjee2888
    @shaswatamukherjee2888 3 года назад

    Just one request. can you get rid of words like "very very" , "different different" , "many many" while you speak. Single words are enough to express the meaning. You materials are great though!

  • @apurvkhatale7511
    @apurvkhatale7511 3 года назад +1

    unable to download mercedes.csv

    • @AjayChauhan-vs7do
      @AjayChauhan-vs7do 3 года назад +2

      www.kaggle.com/yogeerp/mercedes/data . This is the link go and login to kaggle then download the zip file. after that extract that file in any location , then upload it in the home page of jupyter. After these steps hopefully it will work

  • @anchala9019
    @anchala9019 3 года назад +1

    unable to import or create csv file, can anyone explain?

    • @AjayChauhan-vs7do
      @AjayChauhan-vs7do 3 года назад +1

      www.kaggle.com/yogeerp/mercedes/data . This is the link go and login to kaggle then download the zip file. after that extract that file in any location , then upload it in the home page of jupyter. After these steps hopefully it will work

    • @anchala9019
      @anchala9019 2 года назад

      @@AjayChauhan-vs7do thank you

  • @kevinsaify8270
    @kevinsaify8270 3 года назад

    I have question I try to read file from my Mac but it’s not working or I have no idea how to upload it ? Please sir or anyone help me how to do it?

  • @akhandbhardwaj7070
    @akhandbhardwaj7070 3 года назад

    jupyter notebook is showing string io is not defined
    how can I deal with it?

  • @shivendrapatel443
    @shivendrapatel443 3 года назад

    Can anybody tell how to get that full list of operation names starting with same alphabet..
    Like when u typed pd.r after typing r u get full list of operation names starting with r.. Like read_feather, read_excel etc..

    • @ajeetbharti4296
      @ajeetbharti4296 3 года назад +1

      after clicking r you have click on TAB keywords.

  • @vineetkrpandey7641
    @vineetkrpandey7641 3 месяца назад

    Tut-6//done
    13/04/2024

  • @ajamshaikh7582
    @ajamshaikh7582 Год назад

    getting this type of error like syntax error

  • @chandrashekhartiwari4803
    @chandrashekhartiwari4803 3 года назад

    Df.head() SHOW ONLY TOP 5 ROWS

  • @sumanthv9143
    @sumanthv9143 4 года назад

    Hello Krish can give me a link for kaggle

  • @prabuddh_mathur
    @prabuddh_mathur 3 года назад

    I'm literally gonna say 'This lecture went really over my head!'
    Can someone help?

  • @Mecha666
    @Mecha666 2 года назад

    y sb learn krne h kya????

  • @dipankarsaikia3841
    @dipankarsaikia3841 3 года назад

    Ads are frustrating

  • @aishwaryashinde6491
    @aishwaryashinde6491 4 года назад

    data = ''' col1,col2,col3
    x,y,1
    a,b,2
    c,d,3'''