Dash DataTable Tips and Tricks

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 20

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

    Cool video! That's a really worth content Thks for sharing

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

    Get sooner recovery and take care. Thank you very much for your efforts and bringing so many interesting and educational videos

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

    Thank you for all the videos, they helped me a lot. Is it also possible to click countries on world map and update graph based on clicked country? To see the change by years in that country for example?

  • @EduardoOliveira-gq9qn
    @EduardoOliveira-gq9qn Рік тому

    Thanks for the video, got my like.
    I'm trying to build a dash like the first one in the video. My question is, how do i make the country dropdown to show only the countries in my Continent selected?
    Ex.
    Select Americas, and when open the contries dropdown, only the countries in america shows.

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

      hi Eduardo, sorry for the late reply. I had a rough week. That's called a chained callback and you can find an example here: dash.plotly.com/basic-callbacks#dash-app-with-chained-callbacks

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

    Hello. In this video, you assigned the variable using the walrus operator for each of the dropdown components.
    My question is, is it possible for me to just assigned its id="continent_drop" in the dcc.dropdown component instead of continent_drop := dcc.dropdown()?
    Because most of your videos, you assigned the id of the component, is there any advantage of using the walrus operator compared to the assigned id?
    Thank you in advance.

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

      HI Muhammad, yes, you can definitely define a component id and assign it to the callback. The only advantage of using the walrus is that you don't have to mess around with IDs, and it a fewer lines of code to write. But the more complex your app, the more likely that you will have to use ID, so I recommend you use IDs,

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

    in country_drop dropdown with multi = true, it clears the existing selected value. Anyways if we can unclear the selected value in dropdown ?

  • @PedroSouza-fj2fo
    @PedroSouza-fj2fo Рік тому

    Hi! Is it possible to add a total row? Sum of each column

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

    Hi,
    after filtering datatable with a dropdown menu I cant select the remaining rows anymore.
    Do you know what the reason could be?

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

    Hi again. I was playing around with the code on the filter_datatable.py. I tried to change the life expectancy slider component to RangeSlider. I set the value to be between [20, 50].
    However, there is an error on the data. It could not interact with the table. My guess is the filtering part on the callback.
    Can you guide me on how to filter the datatable using the RangeSlider component? I tried to play around with the callback but all I got was error.
    Thank you in advance.

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

    hi, i've been trying to produce these callbacks with an ag grid but it wont update. Do you know why this isnt possible?

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

      not sure. It's hard to say without seeing the code.

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

    hi, how show a table in the dashboard that is the result of a some dropboxes (as it was the terminal... I'm able to see the terminal results, but would like to show those results in a table or whatever vay)

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

      hi Javier, you can probably create a dash datatatble and insert the table generated from the dropbox into the data property of the dash datatable.

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

      @@CharmingData sorry charming, I meant dropdown menu, the dropdownmenus give as a result a table of data, that variates in width and length depending of the dropdown menus selected (it has multi)

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

      @@akaAntifa I'm sorry Javier I'm not sure I understand the question. Feel free to send me your question with a short code snippet via email: adam@charming-data.com

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

      @@CharmingData my fault. Didn't explained correctly. I now have some data pulled to de dashboard, but I would like that data in a table. how could I do that?.My data is returned from de def callback as {} '.format(df) ... I've tried with dash_table.DataTable(id="xx", data=df.to_dict()) and return from that and a container, but doesn't work :( and don't know why... do you have any ideas what I could try?

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

    I wish I was smarter so I could understand too :(