I am working on a project about voting patterns in the US and I have some state-level data which I am having some trouble turning into a choropleth map.
I did some research and found ff.create_choropleth in the plotly figure factory library, however, from what I can understand in the notation, it requires county-level FIP data. I only have FIPS data for State-level analysis (1-56, up to Wyoming). How can I go around this?
edit: I have the data for previous elections, what I was trying to ask was how to use Python to create a choropleth map, given that I have ONLY state FIP and not county FIP.
Sorry for the amateurish question, this is my first Python project!
edit2: I'm using https://plotly.com/python-api-reference/generated/plotly.figure_factory.create_choropleth.html and here are some examples of the data I'm working with (I cut it out from a larger table with more variables other than "voted", it's actually quite simple data (don't want to make this question too long).