title: plot gridded map with lat-lon and fill values in csv file in Python
body: <p><a href="https://i.stack.imgur.com/iLvL8.png" rel="nofollow noreferrer">1</a>I have a <code>.csv</code> file contains a few columns: <code>lon, lat, var1, var2 ...</code></p>
  <pre><code>df = pd.read_csv('D:/file.csv')
  gdf = gpd.GeoDataFrame(df)
  Lon = df['lon']
  Lat = df['lat']
  Slope = df['slope']
  </code></pre>
  <p><strong>Edit</strong>: How can I plot my data in the above table (<em>lon, lat, slope</em>) on a global gridded map with lon <code>(-179.5 degree to 179.5 degree), lat (-89.5 to 89.5 degree)</code> and spatial resolution of 1 degree.</p>
  <p><img src="https://i.stack.imgur.com/AmHwq.png" alt="dataframe image" />
  [<img src="https://i.stack.imgur.com/iLvL8.png" alt="enter image description here" />]</p>