I've got some ArcPy code below which adds all the CSVs in a folder, adds them to the map (AddXYTableToPoint) and buffers the points.
I'm running in a Python notebook in ArcGIS Pro I only want to add the 'final' output, in this case the buffered points to the map.
Currently, the points are added along with the buffered points to the map.
path_list = []
x_coords = "Latitude"
y_coords = "Longitude"
for csv_file in csv_file_list:
in_table = os.path.join(in_folder,csv_file)
name = csv_file.strip(".csv")
out_fc = name
path_list.append(out_fc)
arcpy.management.XYTableToPoint(in_table,out_fc,x_coords,y_coords)
buffer_out = name + str('_buffer')
arcpy.analysis.Buffer(out_fc,buffer_out,"500 Meters")