|
632 | 632 | "cell_type":"markdown",
|
633 | 633 | "metadata": {},
|
634 | 634 | "source": [
|
635 |
| -"## Creation\n", |
636 |
| -"* Random state\n", |
637 |
| -"* Appending rows\n", |
| 635 | +"## Creation\n", |
| 636 | +"* You can create a random but bound grouping of values using the `np.random` package.\n", |
| 637 | +" * `RandomState` let's you seed your randomness in a way that is repeatable.\n", |
| 638 | +"* You can append a row in a couple of ways\n", |
| 639 | +" * You can use the `np.append` method. Make sure the new row is the same shape.\n", |
| 640 | +" * You can create/reassign a new array by including the existing array as part of the iterable in creation.\n", |
| 641 | +"\n", |
638 | 642 | "\n",
|
639 | 643 | "## Indexing\n",
|
640 |
| -"* Shortcut (tuple)\n", |
641 |
| -"* Fancy Indexing" |
| 644 | +"* You can use an indexing shortcut by separating dimensions with a comma.\n", |
| 645 | +"* You can index using a `list` or `np.array`. Values will be pulled out at that specific index. This is known as fancy indexing.\n", |
| 646 | +" * Resulting array shape matches the index array layout. Be careful to distinguish between the tuple shortcut and fancy indexing." |
642 | 647 | ]
|
643 | 648 | },
|
| 649 | + { |
| 650 | +"cell_type":"code", |
| 651 | +"execution_count":null, |
| 652 | +"metadata": {}, |
| 653 | +"outputs": [], |
| 654 | +"source": [] |
| 655 | + }, |
644 | 656 | {
|
645 | 657 | "cell_type":"code",
|
646 | 658 | "execution_count":33,
|
|