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

Function iterrows

code/geopandas/bridge_geopandas.py:58–68  ·  view source on GitHub ↗
(dframe)

Source from the content-addressed store, hash-verified

56def mult_by(dframe, col, scale):
57 dframe[col] *= scale
58def iterrows(dframe):
59 i = -1
60 n_rows = len(dframe)
61 def increment():
62 nonlocal i
63 i += 1
64 if i < n_rows:
65 return dframe.iloc[i]
66 else:
67 return None
68 return increment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected