Skip to content

python03 ex02 #239

@Mazoise

Description

@Mazoise
  • Day: 03
  • Exercise: 02

Il y a un test qui a 2 erreurs, déja il manque le J et le K dans l'array de départ et l'axe est inversé

Examples

arr2 = np.array("A B C D E F G H I".split() * 6).reshape(-1,9)
spb.thin(arr2,3,0)
#Output
array([[’A’, ’B’, ’D’, ’E’, ’G’, ’H’, ’J’, ’K’],
[’A’, ’B’, ’D’, ’E’, ’G’, ’H’, ’J’, ’K’],
[’A’, ’B’, ’D’, ’E’, ’G’, ’H’, ’J’, ’K’],
[’A’, ’B’, ’D’, ’E’, ’G’, ’H’, ’J’, ’K’],
[’A’, ’B’, ’D’, ’E’, ’G’, ’H’, ’J’, ’K’],
[’A’, ’B’, ’D’, ’E’, ’G’, ’H’, ’J’, ’K’]], dtype=<U1’)

pour avoir ce résultat il faut faire le test suivant :

arr2 = np.array("A B C D E F G H I J K".split() * 6).reshape(-1, 11)
spb.thin(arr2, 3, 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions