Plt.annotate(text=etiqueta, xy=row.centroid. Mapa_pedidos_ot(color=color_map, edgecolor='black', linewidth=1)įor idx, row in mapa_pedidos_errows():Įtiqueta = ''.format(row) It's possible to format yout map with something like: # Defining colors:Įlif round(row,4) >= 2000:Ĭolor_map = mapa_pedidos_venta.apply(asignar_color,axis=1) Mapa_pedidos_ot(edgecolor='black', linewidth=1) Mapa_pedidos_venta = rge(dataset, left_on='acom_name', right_on=dataset.acom_name) Then this code will work properly: import geopandas as gpd This code now show me a line graph.įirstly, it's neccesary to drag your variables onto the map (in this case, acon_name and pedidos_venta). However, I didn't get a map visualization. Power BI automatically generates the next dataframe: dataset = pandas.DataFrame(geometry, pedidos_venta, acom_name)Īnd this is that I've tried: import pandas as pd
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |