Saving Pandas DataFrame to Django Model

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

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

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

    This is so awesome love it ... been working on pandas and sqlalchemy for years and just taken up django. This is a dream come true thank you.

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

    This man works so damn hard. He didn't even have to go out of his way to investigate this problem further. Love this guy.

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

    Thank you very much! Was working on a pre-loaded data search engine at work, and this helps a lot!

  • @g.6013
    @g.6013 3 года назад +1

    OMG this is the tutorial im looking for thnx men you are the best next month im joining your chanel (with my first pay chek)

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

    Thanks - Very informative. Managed to follow through for my own project (storing API requests to DB).

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

    Nice video - it would also be interesting to see this with a user uploading an excel file instead of just having one to pull directly from a directory.

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

    EXCELLENT! Wanted to set up docker with postgress as well as PGAmin. These advanced cases for Django are very informative. Thanks!

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

    Very clean explanation and the video was very well paced. Thank You.

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

    this video must be saved. thanks, i love this sir.

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

    Excellent really well explained, very helpful

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

    What if I have a foreign key in one of two tables?. I try your method but didn't work. Hope you have a solution. Thanks for the tutorial btw

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

    The parameter "if_existis" refers to the table, not to the data. So if the value is "replace" the table will be dropped and created again.

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

    Thanks for the tutorial

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

    thank you Very Academy, It's certainly an efficient way, I wonder if it's secure for django.

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

      Sorry not to get back to you sooner. Thank you for joining the members. This tutorial has many flaws but clearly from the views it has had on stackoverflow there have been many who have needed of thought about approach. If you are thinking about adding data to an existing database, always good to try and validate the data before it is inserted, particularly if you have table dependencies. In terms of security, this approach needs more consideration if you were thinking about maintaining the data integrity with multiple users. Hard to give specifics without knowledge of a scenario of use case. Like all approaches, there is always a case for when a different approach could be used.

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

      @@veryacademy thank you for your time

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

      👍

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

    Thanks for this valuable information of Storing Data frame to DB, also please suggest how to export HTML table to pdf in Django without using external libraries. Thanks in advance

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

    Thanks so much man

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

      Hi @veryacademy. Can you please explain if we want to add validation in this file for example not allowing users to enter duplicate products by their title.

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

      Can you please explain if we want to add validation in this file for example not allowing data to be stored as duplicate entries for example in case of product model with title and unit_price, all titles should be stored as unique.

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

    👍