Applies the given function to each item in the matrix.
(self, function=lambda item: item)
| 1846 | return Datasheet(rows=u) |
| 1847 | |
| 1848 | def map(self, function=lambda item: item): |
| 1849 | """ Applies the given function to each item in the matrix. |
| 1850 | """ |
| 1851 | for i, row in enumerate(self): |
| 1852 | for j, item in enumerate(row): |
| 1853 | row[j] = function(item) |
| 1854 | |
| 1855 | def slice(self, i, j, n, m): |
| 1856 | """ Returns a new Datasheet starting at row i and column j and spanning n rows and m columns. |
no outgoing calls