How to plot US 2020 elections with plotly

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

КОМЕНТАРІ • 7

  • @Mozescodes
    @Mozescodes 4 роки тому +1

    Thanks a lot great video and finally explained/written in easy understandable way(not like a lot of others that are over complicated ). Much appreciated helped a lot with my own US election project!

    • @101touchapps
      @101touchapps  4 роки тому

      Thanks Richard, am glad i could help

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

    Thank you very much for this wonderful video. You helped me a lot.

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

    Why couldn't you write locations= 'state' in place of 'usa_state_code'

    • @101touchapps
      @101touchapps  2 роки тому

      well that's another way to do it! will try it out.

  • @priyanshuvettori5179
    @priyanshuvettori5179 Рік тому +1

    Not a single person is able to add annotations on the states like the name amd the data.

    • @tensxr
      @tensxr 11 місяців тому +1

      I added state names that appear on the map, so it visually displays the abbreviation for each state:
      # add state abbreviations
      fig.add_scattergeo(
      locations=data_for_map['id'],
      locationmode='USA-states',
      text=data_for_map['id'],
      mode='text',
      textfont=dict(
      color='white',
      ))
      You can add this before doing fig.show()