Session 10 - File Handling + Serialization & Deserialization | DSMP 2022 - 23

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024

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

  • @ankitsaurabh_
    @ankitsaurabh_ 9 месяцев назад +17

    Sir aap views aur subscribers par maat jaana, please aise hi content bnate raho. You are the best in the world. Under your guidance I think I will become a good Data Scientist. Keep me in your light sir. I wish to grow such that I can call you as my first mentor at a very big stage.

    • @ArunJibhai-m5b
      @ArunJibhai-m5b 4 месяца назад +1

      Bhai aapne membership lia tha kya

  • @shweetamehta7361
    @shweetamehta7361 Год назад +5

    When using the json.dump() or json.dumps() functions in Python, tuples are converted to lists in the resulting JSON output. This is because JSON does not have a built-in tuple data type.
    JSON supports a limited set of data types, including strings, numbers, booleans, arrays (lists), and objects (dictionaries). Since tuples in Python are immutable and ordered sequences, they don't have a direct equivalent in JSON.
    To represent the data from a tuple in JSON, it is converted to a list, which is the closest JSON equivalent to a tuple. This allows for preserving the order of elements and accessing them using numerical indices, just like in a tuple.

  • @sarthakkaushik17
    @sarthakkaushik17 2 года назад +22

    Your videos are so underated. These videos are actually GOLDMINES !!

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

    21/140
    At 40:46, alternate lines are getting printed because:
    the first f.readline() just checks if the loop should continue and it does not prints anything. The second f.readline() is printing the next line. And it goes on. Therefore only alternate lines are getting printed

  • @DevendraKumar-ch6kw
    @DevendraKumar-ch6kw 2 года назад +4

    awesome itana acche content mujhe to nahi mila kisi or you tube video me

  • @sparshsharma4202
    @sparshsharma4202 8 месяцев назад +3

    Thank's Bhaiya ji mai Internship kar rha tha but due too sem exam I have to drop my session so I missed more topics but this file handling all topics totally matched by those mentor teach other student .So thank's bhaiya for more knowledge... I belongs a middle class family but this channel is more helpful for me and you are my elder brother.... One more request bhaiya ji Please make a playlist for Tableau please bhaiya please...............

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

    57:52
    with open("file.txt",'r') as fin:
    chunk_size = 100
    while 1:
    s = fin.read(chunk_size)
    if not s:
    break
    print(s)

  • @nikhil.moharir
    @nikhil.moharir Год назад

    Starting from small and simple examples to advance step by step, usage of simple variables and keywords and explaining each and every type in simplest way possible makes your videos a hidden gem. You have made this concept so easy to understand that I have shared your videos with my classmates. Thank you so much for your efforts.🙏😇

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

    Sir, I rarely comment and like videos. But for the first time i felt commenting all your videos . Thankyou for sharing topics with depth 🙏

  • @ofy_naveen9973
    @ofy_naveen9973 7 дней назад

    at 57:00 correct code should be
    with open('big.txt', 'r') as f:
    chunk_size = 10
    while True:
    data = f.read(chunk_size)
    if not data: # Stop when there's no more data to read
    break
    print(data)
    givecode used by sir will skip some iterations hence don't print whole data

  • @prashantmaurya9635
    @prashantmaurya9635 9 месяцев назад +2

    Great content and explaination but there is a faulty code at 1:01:31 the correct code would be:
    with open('big.txt','r') as f:
    chunk_size = 10
    while True:
    reading = f.read(chunk_size)
    if len(reading) > 0:
    print(reading,end='***')
    else:
    break

    • @prashantmaurya9635
      @prashantmaurya9635 7 месяцев назад +1

      with open('big.txt','r') as f:
      chunk_size = 10
      data = f.read(chunk_size)
      while len(data) > 0:
      print(data ,end='***')
      data = f.read(chunk_size)

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

    treasure for data science aspirants. .. thank you,🙏🙏 sir

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

    Bestest sir !!🙏🙏🙏

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

    1:31:26 Nó way sir
    mai yha tk áá gaya and didnt éven realise...Áap bést ho

  • @qurashishebi7988
    @qurashishebi7988 Год назад +6

    In 1:24:05 you said JSON full form is JavaScript On Notation but JSON stands for JavaScript Object Notation. Koee baat ni mistake insaan se hee hote ha . but waise he bta deya . Love from Pakistan.

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

      It's great that you love these content from across the border. Just asking that , are these type of teachers not in Pakistan due to which you are coming here

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

    1:24:53 Isnt serialisation is process of converting objects into byte stream which will be stored in binary files!!!!

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

    you are amazing

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

    Very interesting and great explanation sir

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

    great

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

    Hello sir...what if object is inherited from other class so in that case if we pickled that file in a binary format and sent it to another system. Will that system now be able to access that object since some of its functionality is dependent upon the parent class?

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

    how r you remembering all these coding

  • @AnujKumar-pv7ci
    @AnujKumar-pv7ci 2 года назад +1

    Sir please add project video on website

  • @amrinakter8628
    @amrinakter8628 4 месяца назад

    can I enroll now to see the paid session?

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

    thank you

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

    At 43:00, what if you are having an empty line then there is a content. It will break the code. Do you have something which is a generic approach to avoid such issues.

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

      #Just a better code to read multiple lines without the if condition
      for i in f.readlines():
      print(i,end='')

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

    #Just a better code to read multiple lines without the if condition
    for i in f.readlines():
    print(i,end='')

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

    A lot of 💕

  • @RonakP-sm2xi
    @RonakP-sm2xi Год назад

    Sir new paid lectures ke recording kidar show hoge?

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

    Sir Newwebsite pe bhi pakistani se payment pay nahi ho pa rahi hay iss ki kiaa wajaa hay.

  • @nirmalkumar-sq4fj
    @nirmalkumar-sq4fj Год назад

    Please do these type of informative videos in English. It will very useful i was excited to watch this Playlist but it was in Hindi

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

    Plz add real project

  • @datascience9020
    @datascience9020 Год назад +2

    sir acually you are skiping 10 words in each iteration because you apply read for two times in that ruclips.net/video/o-TAYRMQzIQ/видео.html

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

    40:44 only two line is showing because, in while condition we are calling readline() and it read a line but this is not getting printed. That's Why every second line is printing only.