I am trying to convert latitude and longitude(EPSG:4326) to projected coordinate systems(NAD83(NSRS2007) / Minnesota South). I followed this tutorial.
My code:
TRAN_4326_TO_3596 = Transformer.from_crs("EPSG:4326", "EPSG:3596", always_xy=True)
def mytransform(lon, lat):
return TRAN_4326_TO_3596.transform(lon, lat)
geo_df[['xproj', 'yproj']] = pd.DataFrame(geo_df.apply(lambda x: mytransform(x['longitude'], x['latitude']), axis=1).tolist(), columns=['foo', 'bar'])
geo_df_sb_cari = geo_df[geo_df["location_name"].isin(["Caribou Coffee", "Starbucks"])]
As you can see in the pic attached I am getting a ton of NaN values for my x and y projections.
What might I be doing wrong?