diff --git a/NumPy/Array Basics/Broadcasting/task.md b/NumPy/Array Basics/Broadcasting/task.md index f88543b..fb3985b 100644 --- a/NumPy/Array Basics/Broadcasting/task.md +++ b/NumPy/Array Basics/Broadcasting/task.md @@ -1,5 +1,3 @@ -## Broadcasting - A frequent situation is that we have a smaller array and a larger array and we need to use the smaller one diff --git a/NumPy/Array Basics/Create an Array from List/task.md b/NumPy/Array Basics/Create an Array from List/task.md index 6d51f2e..1041f11 100644 --- a/NumPy/Array Basics/Create an Array from List/task.md +++ b/NumPy/Array Basics/Create an Array from List/task.md @@ -1,5 +1,3 @@ -## Create an Array - There are several ways you can create arrays. First, you can create an array from a regular Python list or tuple using the `array` function. diff --git a/NumPy/Array Basics/Create an Array from Range/task.md b/NumPy/Array Basics/Create an Array from Range/task.md index f4c50e4..0b90511 100644 --- a/NumPy/Array Basics/Create an Array from Range/task.md +++ b/NumPy/Array Basics/Create an Array from Range/task.md @@ -1,5 +1,3 @@ -## Create an Array from a Range - To create arrays containing sequences of numbers, NumPy provides the [`arange`](https://numpy.org/doc/stable/reference/generated/numpy.arange.html?highlight=arange#numpy.arange) function. It is analogous to Python's built-in [`range`](https://docs.python.org/3/library/functions.html#func-range) but returns an array. diff --git a/NumPy/Array Basics/Create an Empty Array/task.md b/NumPy/Array Basics/Create an Empty Array/task.md index 7ad01a8..fc51404 100644 --- a/NumPy/Array Basics/Create an Empty Array/task.md +++ b/NumPy/Array Basics/Create an Empty Array/task.md @@ -1,5 +1,3 @@ -## Create an Empty Array - Sometimes, the size of an array is known, while its elements are originally unknown. NumPy offers several functions to create arrays with initial placeholder content: diff --git a/NumPy/Array Basics/Random Sampling/task.md b/NumPy/Array Basics/Random Sampling/task.md index e56301b..dd1e40e 100644 --- a/NumPy/Array Basics/Random Sampling/task.md +++ b/NumPy/Array Basics/Random Sampling/task.md @@ -1,5 +1,3 @@ -## Random Sampling - Sometimes, you might need to fill an array with random numbers or sample them from different statistical distributions. Numpy's [`random`](https://numpy.org/doc/stable/reference/random/#module-numpy.random) module allows you to do this. It is a suite of functions based on diff --git a/NumPy/Array Basics/Random Shuffle/task.md b/NumPy/Array Basics/Random Shuffle/task.md index 6734893..54a5d23 100644 --- a/NumPy/Array Basics/Random Shuffle/task.md +++ b/NumPy/Array Basics/Random Shuffle/task.md @@ -1,5 +1,3 @@ -## Random Shuffle - Sometimes, you need to shuffle the contents of an array. For instance, in machine learning tasks, it is common to shuffle data and normalize it. diff --git a/NumPy/Array Basics/Reading and Writing Files/task.md b/NumPy/Array Basics/Reading and Writing Files/task.md index 936e15c..a1a61b6 100644 --- a/NumPy/Array Basics/Reading and Writing Files/task.md +++ b/NumPy/Array Basics/Reading and Writing Files/task.md @@ -1,5 +1,3 @@ -## Reading and Writing Files - You will, at some point, want to save your arrays to disk and load them back without having to re-run the code. Fortunately, there are several ways to save and load objects with NumPy. `ndarray` objects can be saved to and loaded from disk files with [`loadtxt`](https://numpy.org/doc/stable/reference/generated/numpy.loadtxt.html#numpy.loadtxt) diff --git a/NumPy/Array Basics/Reshape/task.md b/NumPy/Array Basics/Reshape/task.md index 1ecaa9d..442dcf3 100644 --- a/NumPy/Array Basics/Reshape/task.md +++ b/NumPy/Array Basics/Reshape/task.md @@ -1,5 +1,3 @@ -## Reshape - Reshaping means changing the `shape` of an array without changing its data. As we mentioned earlier, the `shape` of an array is the number of elements in each dimension. By reshaping, we can add or remove dimensions, or change the number of elements in each dimension. diff --git a/NumPy/Array Basics/ndarray/task.md b/NumPy/Array Basics/ndarray/task.md index 0a9d742..b6ad160 100644 --- a/NumPy/Array Basics/ndarray/task.md +++ b/NumPy/Array Basics/ndarray/task.md @@ -1,5 +1,3 @@ -## ndarray - At the core of the NumPy package is the [`ndarray`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html) object – a homogeneous multidimensional array. `ndarray` is a shorthand for "N-dimensional array". An N-dimensional array is simply an array with any number of dimensions. It is a table of elements (usually numbers), all of the same type, indexed by a tuple of non-negative integers. diff --git a/NumPy/Array Indexing and Slicing/Boolean Indexing/task.md b/NumPy/Array Indexing and Slicing/Boolean Indexing/task.md index e841aa8..c53fd2f 100644 --- a/NumPy/Array Indexing and Slicing/Boolean Indexing/task.md +++ b/NumPy/Array Indexing and Slicing/Boolean Indexing/task.md @@ -1,5 +1,3 @@ -## Boolean Indexing - Boolean arrays used as indices are treated differently from index arrays. Boolean arrays must be of the same shape as the initial dimensions of the array being indexed. Such boolean arrays are often referred to as **masks**, and the process of using them in indexing other arrays diff --git a/NumPy/Array Indexing and Slicing/Indexing Basics/task.md b/NumPy/Array Indexing and Slicing/Indexing Basics/task.md index 6da5514..6da64a8 100644 --- a/NumPy/Array Indexing and Slicing/Indexing Basics/task.md +++ b/NumPy/Array Indexing and Slicing/Indexing Basics/task.md @@ -1,5 +1,3 @@ -## Indexing Basics - Array indexing refers to any use of square brackets (`[]`) to index array values. ### Single element indexing diff --git a/NumPy/Array Indexing and Slicing/Integer Array Indexing/task.md b/NumPy/Array Indexing and Slicing/Integer Array Indexing/task.md index 99c6141..6669984 100644 --- a/NumPy/Array Indexing and Slicing/Integer Array Indexing/task.md +++ b/NumPy/Array Indexing and Slicing/Integer Array Indexing/task.md @@ -1,5 +1,3 @@ -## Integer Array Indexing - NumPy arrays may be indexed with other arrays. For all cases of index arrays, what is returned is a copy of the original data, not a view as one gets for slices. diff --git a/NumPy/Array Math/Basic Math Functions/task.md b/NumPy/Array Math/Basic Math Functions/task.md index 1dea4ad..e3f640e 100644 --- a/NumPy/Array Math/Basic Math Functions/task.md +++ b/NumPy/Array Math/Basic Math Functions/task.md @@ -1,5 +1,3 @@ -## Basic Mathematical Functions - The ease of implementing mathematical formulas that work on arrays is one of the things that make NumPy so widely used in the scientific Python community. diff --git a/NumPy/Array Math/Linear Algebra/task.md b/NumPy/Array Math/Linear Algebra/task.md index c5cc594..7b3a31f 100644 --- a/NumPy/Array Math/Linear Algebra/task.md +++ b/NumPy/Array Math/Linear Algebra/task.md @@ -1,5 +1,3 @@ -## Linear Algebra - Matrices and matrix operations are used in the description of many machine learning algorithms due to the efficiency of matrix solutions in ML problems. NumPy [`numpy.linalg`](https://numpy.org/doc/stable/reference/routines.linalg.html) diff --git a/NumPy/Arrays of String and Unicode Values/Basic String Operations in NumPy/task.md b/NumPy/Arrays of String and Unicode Values/Basic String Operations in NumPy/task.md index 1f3a625..abdde26 100644 --- a/NumPy/Arrays of String and Unicode Values/Basic String Operations in NumPy/task.md +++ b/NumPy/Arrays of String and Unicode Values/Basic String Operations in NumPy/task.md @@ -1,5 +1,3 @@ -## Basic String Operations in NumPy - There is a number of functions in NumPy that perform string operations on arrays of string and unicode values by calling familiar Python string methods. Here are some examples: diff --git a/NumPy/Arrays of String and Unicode Values/Translate/task.md b/NumPy/Arrays of String and Unicode Values/Translate/task.md index d81b965..6e75596 100644 --- a/NumPy/Arrays of String and Unicode Values/Translate/task.md +++ b/NumPy/Arrays of String and Unicode Values/Translate/task.md @@ -1,5 +1,3 @@ -## Translate - Sometimes, you might need to remove certain characters from your array of strings or replace them with some other characters in accordance with some rule or translation table. For that purpose, you can use [`numpy.char.translate(a, table, deletechars=None)`](https://numpy.org/doc/stable/reference/generated/numpy.char.translate.html), diff --git a/NumPy/Arrays of String and Unicode Values/numpy.char Module/task.md b/NumPy/Arrays of String and Unicode Values/numpy.char Module/task.md index 3769806..05c9fed 100644 --- a/NumPy/Arrays of String and Unicode Values/numpy.char Module/task.md +++ b/NumPy/Arrays of String and Unicode Values/numpy.char Module/task.md @@ -1,5 +1,3 @@ -## `numpy.char` Module - [`numpy.chararray`](https://numpy.org/doc/stable/reference/generated/numpy.char.array.html) used to provide a view of arrays of string and [unicode](https://docs.python.org/3/howto/unicode.html) values. However, the `chararray` class currently exists only for backwards compatibility, and it is not recommended for new development. Starting from numpy 1.4, if diff --git a/NumPy/Compare Search/Compare with a scalar/task.md b/NumPy/Compare Search/Compare with a scalar/task.md index 54b3267..7475afd 100644 --- a/NumPy/Compare Search/Compare with a scalar/task.md +++ b/NumPy/Compare Search/Compare with a scalar/task.md @@ -1,5 +1,3 @@ -## Compare with a Scalar - Each element of an array can be compared against a scalar using any of the operators: - greater than (`>`), - greater than or equal to (`>=`), diff --git a/NumPy/Compare Search/Element-wise Comparison/task.md b/NumPy/Compare Search/Element-wise Comparison/task.md index 5c7dc45..b7441d5 100644 --- a/NumPy/Compare Search/Element-wise Comparison/task.md +++ b/NumPy/Compare Search/Element-wise Comparison/task.md @@ -1,5 +1,3 @@ -## Elementwise Comparison - Elementwise comparison is when you compare each element of one array to an element of another array. [`numpy.equal`](https://numpy.org/doc/stable/reference/generated/numpy.equal.html) is a function that returns `(x1 == x2)` elementwise. It accepts two input arrays which must either have equal `shape` or be broadcastable to a common shape diff --git a/NumPy/Compare Search/Find Unique Values/task.md b/NumPy/Compare Search/Find Unique Values/task.md index cd72894..d5df0c7 100644 --- a/NumPy/Compare Search/Find Unique Values/task.md +++ b/NumPy/Compare Search/Find Unique Values/task.md @@ -1,5 +1,3 @@ -## Find Unique Values - The [`numpy.unique`](https://numpy.org/doc/stable/reference/generated/numpy.unique.html) function is pretty straightforward – it finds unique elements in the input array and returns them as a sorted array: diff --git a/NumPy/Compare Search/Find maximum/task.md b/NumPy/Compare Search/Find maximum/task.md index a6efd24..3e6abbc 100644 --- a/NumPy/Compare Search/Find maximum/task.md +++ b/NumPy/Compare Search/Find maximum/task.md @@ -1,5 +1,3 @@ -## Find Maximum (or Minimum) - There are several ways to find the maximum value in an array. The most straightforward way is to use [`numpy.amax`](https://numpy.org/doc/stable/reference/generated/numpy.amax.html), which returns the maximum of an array or the maximum along an axis: diff --git a/NumPy/Compare Search/Search/task.md b/NumPy/Compare Search/Search/task.md index 1b965db..3927443 100644 --- a/NumPy/Compare Search/Search/task.md +++ b/NumPy/Compare Search/Search/task.md @@ -1,5 +1,3 @@ -## Search - You can search an array for a certain value or for values that satisfy a condition, and return the **indices** that get a match. diff --git a/NumPy/Compare Search/bincount/task.md b/NumPy/Compare Search/bincount/task.md index 604e796..6b051e9 100644 --- a/NumPy/Compare Search/bincount/task.md +++ b/NumPy/Compare Search/bincount/task.md @@ -1,5 +1,3 @@ -## bincount - A use case somewhat related to finding unique values is counting the number of occurrences of each value in an array. [`numpy.bincount`](https://numpy.org/doc/stable/reference/generated/numpy.bincount.html) is the function that does just that for an array of non-negative ints. It returns the result of binning the input array, which is the count of how many times every integer on the interval from 0 diff --git a/NumPy/Introduction/Course View/task.md b/NumPy/Introduction/Course View/task.md index f66a59f..e2be9e0 100644 --- a/NumPy/Introduction/Course View/task.md +++ b/NumPy/Introduction/Course View/task.md @@ -1,5 +1,3 @@ -## Course View - Course View shows you the course syllabus: a list of lessons with tasks.