ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Read specific columns from csv in python pandas

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ค. 2021
  • #python #read #csv #columns #pandas
    For Deatailed Blog Guide : hackanons.com/...

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

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

    You should rename this to "Read specific rows from csv in python pandas". You didn't explain how to read specific columns.

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

      god damn right LOL

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

      after putting the iloc, there is a [:,1:2] set and the 2 in this a jump so we are jumping two values and coming to the next one (which always leads to the age column) and if we remove this jump then we can get the value of a row, so for a specific column, mention the index of the column before and the one of after.

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

    Great tutorial!!! Thanks

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

    How can you search the first row (header) of a csv file, looking for the column that has the string, "Score".. and if found, retrieve all the rows from that column into a list?
    import pandas as pd
    df = pd.read_csv('my.csv')
    scoreList = df["Score"].tolist() #list(df["Score"].values)

  • @TrueloveisnowhereintheworldJok
    @TrueloveisnowhereintheworldJok 3 ปีที่แล้ว +4

    👍👍

  • @GauravSingh-uu4ze
    @GauravSingh-uu4ze ปีที่แล้ว

    Sir, can u tell me what is the path of book1.csv file..

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

    thanks a lot!!

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

    If there are many rows n columns how to print it all

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

    Any method for rows tell me

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

    It was for specific row not column. How to read particular column?

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

    👍