CSV To JSON With Python Pandas

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

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

  • @higiniofuentes2551
    @higiniofuentes2551 8 месяцев назад +1

    Thank you for this very useful video!

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

    Bro you nailed it specially converting df to json and passing indent and Orient inside to json method.. I was stuck bec my json was reading the row indexes as well and I am new to python this helped me to make a very neat json. Subscribed to the channel keep doing the good work

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

      Thanks Karan I'm glad you found this helpful! Thanks for subscribing!

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

    Super sir excellent teaching

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

    you can put the r'f:\ code inside
    df = pd.read_csv(r'f:\ etc) for example no need for two lines of code

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

      Hi Tyler, correct! I tried to make the code more readable for the video so I separated it out.

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

    good!!!

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

    Hey, I'm getting this erro while converting to json please tell!
    TypeError: to_json() got an unexpected keyword argument 'indent'

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

      Hi Umar, it sounds like you have an invalid parameter that you passed

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

      @@DataEngUncomplicated I passed all the parameters as you mentioned in the video. My CSV did get convert to JSON but it wasn't in as formats as yours because of this indent error.