I am attempting to change the name of the layer. The following code changes the name of the layer but then removes the layer from the map, and I am not sure why.
Note: I don't have any remove layer statements.
for lyrs in arcpy.mapping.ListLayers(mxd, "*", df):
if lyrs.name == "project_ws":
lyrs.name = "project_prow"
arcpy.RefreshTOC()
arcpy.RefreshActiveView()