It sounds like you have a collection of points and you are trying to convert them into polygons?
How are the points in your CSV related -- are the all part of one polygon? Can you use a convex hull to make them into a polygon? Or some other function... this is the time when we say "exactly what do you need to end up with?"
https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/minimum-bounding-geometry.htm
If you don't have access to desktop ArcGIS to use arcpy there is also a thing called "GeoPandas".