MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / rename_col

Function rename_col

code/geopandas/bridge_geopandas.py:45–46  ·  view source on GitHub ↗
(dframe, A, B)

Source from the content-addressed store, hash-verified

43def col_filter(dframe, cols):
44 return dframe[[*cols]]
45def rename_col(dframe, A, B):
46 dframe.rename(columns={A:B}, inplace=True)
47def astype(dframe, col, new_type):
48 if new_type == 'int':
49 dframe[col] = dframe[col].astype(int)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected