Update README.md

This commit is contained in:
George Mihaila
2020-09-08 20:01:32 -05:00
committed by GitHub
parent 9c466127da
commit fa5de71d4a

View File

@@ -37,8 +37,8 @@ def pad_array(variable_length_array, fixed_length=None, axis=1)
```
| | |
|----------------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Parameters:** | **variable_length_array** : array<br>&nbsp;&nbsp;&nbsp;&nbsp;Single arrays [1,2,3] or nested arrays [[1,2],[3]].<br><br>**fixed_length** : int<br>Max length of rows for numpy.<br><br>**axis** : int<br>Directions along rows: 1 or columns: 0. |
| **Returns:** | **numpy_array** : <br>axis=1: fixed numpy array shape [len of array, fixed_length]. <br>axis=0: fixed numpy array shape [fixed_length, len of array]. | |
| **Parameters:** | **variable_length_array** : array<br>&nbsp;&nbsp;&nbsp;&nbsp;Single arrays [1,2,3] or nested arrays [[1,2],[3]].<br>**fixed_length** : int<br>&nbsp;&nbsp;&nbsp;&nbsp;Max length of rows for numpy.<br>**axis** : int<br>&nbsp;&nbsp;&nbsp;&nbsp;Directions along rows: 1 or columns: 0. |
| **Returns:** | **numpy_array** :<br>&nbsp;&nbsp;&nbsp;&nbsp;axis=1: fixed numpy array shape [len of array, fixed_length].<br>&nbsp;&nbsp;&nbsp;&nbsp;axis=0: fixed numpy array shape [fixed_length, len of array]. | |
Example: