Skip to content

Junior - lab numpy done#13

Open
linharesjunior wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
linharesjunior:main
Open

Junior - lab numpy done#13
linharesjunior wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
linharesjunior:main

Conversation

@linharesjunior
Copy link
Copy Markdown

No description provided.

@sh-ih
Copy link
Copy Markdown

sh-ih commented Oct 19, 2023

Great job on this lab!

On the challenge of question 3, a and a2 are two ways to get the array with random values.

Your a3 = np.random.choice(2, 3, 5) is not useful here, because it gives you an array fg 3 elements, with values from 0 to 2, not including 2. The 5 is not actually doing anything (link of documentation of np.random.choice).

Another option you can use to generate an array with random variables is np.random.sample: a3 = np.random.sample((2,3,5)) (documentation link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants