This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rows_as_update_dicts(cursor): | |
colnames = cursor.fields | |
for row in cursor: | |
row_object = dict(zip(colnames, row)) | |
yield row_object | |
cursor.updateRow([row_object[colname] for colname in colnames]) | |
with arcpy.da.UpdateCursor(r'c:\data\world.gdb\world_cities', ['CITY_NAME']) as sc: | |
for row in rows_as_update_dicts(sc): | |
row['CITY_NAME'] = row['CITY_NAME'].title() |
These are some notes on how to manage R versions and then specific project dependencies
Found this tool rig to help with managing multiple versions of R on WSL/Ubuntu
Overview
Every time I setup VSCode for a python project I end up doing it incrementally. This is a guide to help me with a default env / configuration.