<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AGOL Notebook Script Tool Parameter Help in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/agol-notebook-script-tool-parameter-help/m-p/1697758#M68494</link>
    <description>&lt;P&gt;No info on script tool parameters to be found here:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/get-started/get-started-with-notebooks.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://doc.arcgis.com/en/arcgis-online/get-started/get-started-with-notebooks.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Generally speaking, how does a parameter work? Is it like a Pro script tool parameter? How do I fill it out? For example, for Pro you just put &lt;EM&gt;arcpy.GetParameterAsText(0)&lt;/EM&gt;&amp;nbsp;in place of the variable in the script. And then based on the&amp;nbsp;&lt;EM&gt;0 &lt;/EM&gt;index you fill out the parameters for the tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a short script I'd like to make into a tool to ultimately be used in ExB. It geocodes a CSV file. There should only be two variables concerning the user: the CSV in file and the CSV out file. Once you fill out the Add parameter pane and enter something in the Default value (?) box you can save. It then gives you the option to insert the variable. Not sure where to insert it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaredPilbeam2_0-1776884251990.png" style="width: 259px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/151427iFA2F35A232919D5F/image-dimensions/259x667?v=v2" width="259" height="667" role="button" title="JaredPilbeam2_0-1776884251990.png" alt="JaredPilbeam2_0-1776884251990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;''' 
csv file &amp;gt; df &amp;gt; gdf &amp;gt; shp
'''

import pandas as pd
import geopandas as gpd

# read csv file
f = r'C:\pathto\infile.csv'
file = pd.read_csv(f)

# convert to dataframe
df = pd.DataFrame(file)

# geocode
gdf = gpd.tools.geocode(df['ADDRESS'])

# extract lat long from geometry and put into dataframe
df['latitude'],df['longitude'],df['geometry'] = gdf.geometry.y, gdf.geometry.x, gdf.geometry

# generate GeometryArray of shapely Point geometries from x, y(, z) coordinates.
gdf = gpd.GeoDataFrame(df, geometry=gpd.points_from_xy(df.longitude, df.latitude), crs="EPSG:4326") #crs is optional

# write to shapefile
gdf.to_csv(r'C:\pathto\outfile.csv')&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaredPilbeam2_1-1776884329317.png" style="width: 541px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/151429iF809FA2A9027F670/image-dimensions/541x471?v=v2" width="541" height="471" role="button" title="JaredPilbeam2_1-1776884329317.png" alt="JaredPilbeam2_1-1776884329317.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2026 21:27:34 GMT</pubDate>
    <dc:creator>JaredPilbeam2</dc:creator>
    <dc:date>2026-04-22T21:27:34Z</dc:date>
    <item>
      <title>AGOL Notebook Script Tool Parameter Help</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-notebook-script-tool-parameter-help/m-p/1697758#M68494</link>
      <description>&lt;P&gt;No info on script tool parameters to be found here:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/get-started/get-started-with-notebooks.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://doc.arcgis.com/en/arcgis-online/get-started/get-started-with-notebooks.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Generally speaking, how does a parameter work? Is it like a Pro script tool parameter? How do I fill it out? For example, for Pro you just put &lt;EM&gt;arcpy.GetParameterAsText(0)&lt;/EM&gt;&amp;nbsp;in place of the variable in the script. And then based on the&amp;nbsp;&lt;EM&gt;0 &lt;/EM&gt;index you fill out the parameters for the tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a short script I'd like to make into a tool to ultimately be used in ExB. It geocodes a CSV file. There should only be two variables concerning the user: the CSV in file and the CSV out file. Once you fill out the Add parameter pane and enter something in the Default value (?) box you can save. It then gives you the option to insert the variable. Not sure where to insert it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaredPilbeam2_0-1776884251990.png" style="width: 259px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/151427iFA2F35A232919D5F/image-dimensions/259x667?v=v2" width="259" height="667" role="button" title="JaredPilbeam2_0-1776884251990.png" alt="JaredPilbeam2_0-1776884251990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;''' 
csv file &amp;gt; df &amp;gt; gdf &amp;gt; shp
'''

import pandas as pd
import geopandas as gpd

# read csv file
f = r'C:\pathto\infile.csv'
file = pd.read_csv(f)

# convert to dataframe
df = pd.DataFrame(file)

# geocode
gdf = gpd.tools.geocode(df['ADDRESS'])

# extract lat long from geometry and put into dataframe
df['latitude'],df['longitude'],df['geometry'] = gdf.geometry.y, gdf.geometry.x, gdf.geometry

# generate GeometryArray of shapely Point geometries from x, y(, z) coordinates.
gdf = gpd.GeoDataFrame(df, geometry=gpd.points_from_xy(df.longitude, df.latitude), crs="EPSG:4326") #crs is optional

# write to shapefile
gdf.to_csv(r'C:\pathto\outfile.csv')&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaredPilbeam2_1-1776884329317.png" style="width: 541px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/151429iF809FA2A9027F670/image-dimensions/541x471?v=v2" width="541" height="471" role="button" title="JaredPilbeam2_1-1776884329317.png" alt="JaredPilbeam2_1-1776884329317.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2026 21:27:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-notebook-script-tool-parameter-help/m-p/1697758#M68494</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2026-04-22T21:27:34Z</dc:date>
    </item>
  </channel>
</rss>

