Why does GeoPandas change plot types after I reorganize my data?

I seem to be having some issues plotting a map. Please bear with me, as I am new to data visualisation.

I’d like to take some company sales data and make a choropleth (and eventually a bubble map) to show which counties in Ireland are our most active in terms of sales. I am able to merge the shapefiles for the Republic of Ireland and Northern Ireland into one dataset so that I capture sales across our fair island, but my issue stems from the fact that I have more than one data point for some counties.

When I try to plot ireland_sales with the Volume column, I get this:

![image|471x500](upload://bmMvUAMQm2Hb5GmWb9vNbEWVZ1W.png)

Happy days! However, when I try to consolidate my data to just one point per county using a groupby sum and then a merge, plotting ireland_sales_summed with the County Volume Total column gets me a nearly imperceptible line graph instead of a map:

enter image description here

My data for ireland_sales and ireland_sales_summed look like this:

enter image description here

My code is below. I’ve asked the matplotlib forum for help, but they pointed me here as it is apparently a GeoPandas issue. Thanks in advance for the help!

import pandas as pd
import geopandas as gpd
import matplotlib.pyplot as plt

#read shapefiles

ni = gpd.read_file(#shapefile_path)
republic = gpd.read_file(#shapefile_path)

#create NI centroids

ni['centroid'] = ni['geometry'].centroid

#convert NI centroids to x/y to match Republic shapefile

ni['centroid'] = ni['centroid'].astype(str)
ni['centroid'] = ni.apply(lambda x: x['centroid'][7:-1], axis=1)
ni[['CENTROID_X','CENTROID_Y']] = ni['centroid'].str.split(' ', expand=True)
ni = ni.drop(['centroid'], axis=1)

#bring shapefiles into common coordinate system

ni = ni.to_crs('EPSG:4326')
republic = republic.to_crs('EPSG:4326')

#merge shapefiles
ireland = gpd.pd.concat([republic, ni])
counties = []
for i in ireland['COUNTY']:
    if type(i) == str:
        counties.append(i)
for i in ireland['CountyName']:
    if type(i) == str:
        counties.append(i)
ireland['County'] = counties
ireland = ireland.drop(['COUNTY', 'CountyName','ENGLISH', 'GAEILGE', 'CONTAE', 'PROVINCE', 'OBJECTID'], axis=1)

#read in and process data

sales = pd.read_csv(#data_path)

ireland_sales = ireland.merge(sales, on='County')
ireland = ireland[~ireland['County'].isin(sales['County'])]
ireland_sales = pd.concat([ireland_sales, ireland])
ireland_sales['Volume'] = ireland_sales['Volume'].fillna(0)

ireland_vol_total = ireland_sales.groupby('County').sum(numeric_only=True)
ireland_vol_total = ireland_vol_total.drop(['AREA'], axis=1)
ireland_vol_total = ireland_vol_total.rename(columns={'Volume':'County Volume Total'})

ireland_sales_summed = ireland_vol_total.merge(ireland_sales, on='County')
ireland_sales_summed = ireland_sales_summed.drop(['Customer', 'Volume'], axis=1)
ireland_sales_summed = ireland_sales_summed.drop_duplicates(subset=['County'],keep='first')

#plot data

fig, ax = plt.subplots(1, 1)
fig.set_size_inches(10,10)

#produces map
ireland_sales.plot(ax=ax, column='Volume', cmap='Blues')

#produces line chart?
ireland_sales_summed.plot(ax=ax, column='County Volume Total', cmap='Blues')

ax.set_axis_off()

plt.show()

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật