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

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 134

  • @debadattamishra5160
    @debadattamishra5160 4 роки тому +33

    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?

  • @arandomwho
    @arandomwho 2 роки тому +4

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

  • @rizf800
    @rizf800 Рік тому +3

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

  • @vinayak254
    @vinayak254 3 роки тому +2

    thank you krish naik for your support to all the beginners

  • @subhashmurugesan5442
    @subhashmurugesan5442 4 роки тому +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...

  • @MuhammadSabahatNS
    @MuhammadSabahatNS 6 місяців тому +2

    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.

  • @preetbenipal1034
    @preetbenipal1034 4 роки тому +5

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

  • @rishabdua3349
    @rishabdua3349 2 роки тому +2

    pretty much simple, pretty much easy😀😀

  • @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 🙏

  • @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?

  • @singhji1071
    @singhji1071 5 років тому +4

    Nice share sir.
    Thanks a lot !!!

  • @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.

  • @niranjankotwal1666
    @niranjankotwal1666 4 роки тому +9

    Link for dataset?

  • @Vertical_ig
    @Vertical_ig 3 роки тому +1

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

  • @archanaashok1980
    @archanaashok1980 3 роки тому +2

    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?

  • @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 4 роки тому +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 4 роки тому +1

      Even I had faced the same issue with usecols

  • @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

  • @thehope7689
    @thehope7689 4 роки тому +2

    thank you so much sir for such a nice explanation

  • @asapannarakesh938
    @asapannarakesh938 5 років тому +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

  • @brijrajsinhgohil7417
    @brijrajsinhgohil7417 4 роки тому +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 ?

  • @toddfodd7198
    @toddfodd7198 5 років тому +5

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

  • @joyprokash4013
    @joyprokash4013 7 місяців тому

    Excellent Sir!

  • @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.

  • @archanaashok1980
    @archanaashok1980 3 роки тому +1

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

  • @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

  • @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

  • @shreedharchavan7033
    @shreedharchavan7033 3 роки тому +1

    awesome🔥

  • @shraddhaverma4111
    @shraddhaverma4111 3 роки тому +1

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

  • @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

  • @riyaz8072
    @riyaz8072 3 роки тому +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..!!

  • @akashnidgundi61
    @akashnidgundi61 Рік тому

    bhai

  • @tanyajayanti1489
    @tanyajayanti1489 2 роки тому +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 3 роки тому +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.

  • @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 "

  • @louerleseigneur4532
    @louerleseigneur4532 3 роки тому

    Thanks a lot Krish

  • @sidkapoor9085
    @sidkapoor9085 3 роки тому +1

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

  • @akshaypratap7390
    @akshaypratap7390 5 років тому +1

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

  • @sandeepdesale6395
    @sandeepdesale6395 3 роки тому +1

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

  • @ankurmalik7388
    @ankurmalik7388 4 роки тому +2

    plz provide the link of this data sett

  • @SaiKrishna-qx9vf
    @SaiKrishna-qx9vf 4 роки тому +1

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

  • @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.

  • @sagarshende192
    @sagarshende192 4 роки тому +4

    Where do we get 'Mercedesbenz' dataset from?

  • @TheGanji26
    @TheGanji26 3 роки тому

    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

  • @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 4 роки тому +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.

  • @wellwhatdoyakno6251
    @wellwhatdoyakno6251 2 роки тому

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

  • @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

  • @sidpoosala6721
    @sidpoosala6721 4 роки тому

    thanks its reakky help to me sir

  • @simanchalpatnaik2566
    @simanchalpatnaik2566 5 років тому +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 4 роки тому

      There are already many vids on that.

  • @vaibhavranglani495
    @vaibhavranglani495 4 роки тому +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='\\')

  • @JacklinSibiyal
    @JacklinSibiyal 10 місяців тому +3

    Day 2 - 17/02/2024

  • @aveshnagori8795
    @aveshnagori8795 2 роки тому

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

  • @anmolj
    @anmolj 5 років тому +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...

    • @ZaidShaikh_619
      @ZaidShaikh_619 5 років тому +1

      12 gb ram is slow? 😵

    • @anmolj
      @anmolj 5 років тому +1

      @@ZaidShaikh_619 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.

  • @atanupaul489
    @atanupaul489 3 місяці тому

    the url to CSV is getting error like: HTTPError: HTTP Error 403: Forbidden. What to do now ?

  • @risathr3436
    @risathr3436 4 місяці тому

    data ='('a,b,c
    ','4,apple,orange,
    ','5,cow,buffalo,')
    pd.read_csv(StringIO(data),usecols=['b','c'],index_col=False)
    I get the below error:
    TypeError: initial_value must be str or None, not tuple , Please help fixing this.

  • @daspopdsa
    @daspopdsa Рік тому

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

  • @suvarnadeore8810
    @suvarnadeore8810 3 роки тому

    Thank you sir

  • @vandinibansal9815
    @vandinibansal9815 2 роки тому

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

  • @yellankinaveen2496
    @yellankinaveen2496 2 роки тому +1

    sir please provide dataset link

  • @vashitvaraj8717
    @vashitvaraj8717 3 роки тому +1

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

  • @izharhaq735
    @izharhaq735 5 років тому

    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. :)

  • @SouLK.P
    @SouLK.P 4 роки тому

    files are not able to download from Github

  • @ankitsaxena565
    @ankitsaxena565 5 років тому +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'

  • @1shan1975
    @1shan1975 3 роки тому

    I think usecols with column name is not working anymore

  • @aenuguupendra3502
    @aenuguupendra3502 2 роки тому

    Unable to import stringio and bytesio

  • @stutisrivastava2925
    @stutisrivastava2925 8 місяців тому

    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

  • @lokeshvenkatesan2693
    @lokeshvenkatesan2693 4 роки тому

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

    • @ravigiri_67
      @ravigiri_67 4 роки тому +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

  • @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!

  • @mounikathouda
    @mounikathouda 6 місяців тому

    Please provide link for dataset

  • @harisankar6104
    @harisankar6104 4 роки тому

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

  • @reshulw884
    @reshulw884 4 роки тому +1

    my dataset is not loading why??? mercedes one

    • @harikadrona717
      @harikadrona717 9 місяців тому

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

  • @shivanshsrivastava5149
    @shivanshsrivastava5149 5 місяців тому

    hey can anyone plz guide me from where can i practice the problems

  • @satyasreegarapati6605
    @satyasreegarapati6605 Рік тому

    how to download that dataset

  • @nikhatparveen2369
    @nikhatparveen2369 Рік тому

    Is this ml playlist complete

  • @hruday19
    @hruday19 5 років тому +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  5 років тому +1

      Check my playlist

    • @ZaidShaikh_619
      @ZaidShaikh_619 5 років тому +1

      ua-cam.com/video/QUClKFFn1Vk/v-deo.html

    • @hruday19
      @hruday19 5 років тому +1

      @@krishnaik06 ok I will check it.

  • @alipaloda9571
    @alipaloda9571 4 роки тому

    how to read multiple file under one variable

  • @amitpatil6121
    @amitpatil6121 2 роки тому

    How and where to download mercedes.csv file

  • @sunnysolanki2460
    @sunnysolanki2460 2 роки тому

    Not showed how to import StringIO

  • @prabuddh_mathur
    @prabuddh_mathur 4 роки тому

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

  • @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 3 роки тому

      @@AjayChauhan-vs7do thank you

  • @apurvkhatale7511
    @apurvkhatale7511 4 роки тому +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

  • @hometvfirestick
    @hometvfirestick 3 роки тому

    thanks

  • @manikantasai4766
    @manikantasai4766 5 років тому +2

    I was the first to view and like!

  • @indirajithkv7793
    @indirajithkv7793 2 роки тому

  • @chandrashekhartiwari4803
    @chandrashekhartiwari4803 4 роки тому

    Df.head() SHOW ONLY TOP 5 ROWS

  • @vineetkrpandey7641
    @vineetkrpandey7641 9 місяців тому

    Tut-6//done
    13/04/2024

  • @akhandbhardwaj7070
    @akhandbhardwaj7070 4 роки тому

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

  • @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??

  • @shivendrapatel443
    @shivendrapatel443 4 роки тому

    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 4 роки тому +1

      after clicking r you have click on TAB keywords.

  • @ajamshaikh7582
    @ajamshaikh7582 Рік тому

    getting this type of error like syntax error

  • @kevinsaify8270
    @kevinsaify8270 4 роки тому

    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?

  • @dipankarsaikia3841
    @dipankarsaikia3841 4 роки тому

    Ads are frustrating

  • @sumanthv9143
    @sumanthv9143 4 роки тому

    Hello Krish can give me a link for kaggle

  • @Mecha666
    @Mecha666 2 роки тому

    y sb learn krne h kya????

  • @aishwaryashinde6491
    @aishwaryashinde6491 4 роки тому

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