Skip to content

SparklinStar/Numpy-Practice

Repository files navigation

Numpy-Practice

A DevDotCom x Coding Club JISCE initiative to Practice Numpy

Dont forget to star this repo

First steps

Create a folder with your name then create a file within that folder with the name task1.py for the first task

.
├── Numpy-Practice
│   ├── Your Name
│   │   ├── task1.py
│   │   ├── task2.py
│   │   ├── task3.py
│   │   └── ...
│   ├── other files and folders
└── ...

A guide to do the tasks with me

See the tasks as below. Try to think how you can do it on your own. If you cannot do it refer to the guide.ipynb file in the guide folder. See the code and think what the code is doing. Copy and Run the code in your task file. Think about the output. Also don't forget to use comments to explain what the code is doing.

Tasks

Task List

  1. Numpy version
  2. Create an empty array
  3. Check whether the array is empty
  4. Check elements count
  5. Arrange numpy between numbers
  6. Arrange numpy between numbers with intervals
  7. Array reshape
  8. Create a numpy with random integers
  9. Create a numpy with random integers and size
  10. Array of strings
  11. Numpy array with strings and explicit dtype
  12. Numpy array with strings and explicit dtype
  13. Print without truncation
  14. Save Numpy to CSV
  15. Dataframe to Numpy
  16. Get the nth column of an array
  17. Reshape with -1 (lazy option)
  18. Numpy with precision
  19. Argsort on Numpy array
  20. Numpy view
  21. Using Flipud
  22. Numpy inverse
  23. Numpy Inverse
  24. Numpy compare
  25. Numpy compare with nonzero count
  26. Flip a numpy array by using flipud
  27. Flip a numpy array by using flipud without sharing the memory
  28. Flip a numpy array by using fliplr (horizontally)
  29. Flip a numpy array by using flip (both horizontally and vertically)
  30. Flipping the numpy array using slices
  31. Convert numpy array to list
  32. Numpy Where
  33. Numpy where with multiple conditions
  34. Numpy where with multiple conditions - apply only on matching conditions
  35. Process with where
  36. List to numpy array
  37. List to numpy array with explicit dtype
  38. 2D list to numpy array
  39. Convert list to float numpy array
  40. Convert list to numpy array with explicit datatype
  41. Find common values between two numpy array
  42. Get today in numpy and deltas
  43. Between two Dates
  44. Random array and sorting
  45. Random int array and sorting
  46. String to numpy array
  47. Find the nearest element in the array
  48. Swap rows
  49. Shuffle
  50. Get specific element
  51. Repeat an array
  52. Min, Max, Sum
  53. Get min of axis = 1
  54. Using amin function
  55. Using amax function
  56. Get min of axis = 0
  57. Calculate 90th percentile of an axis
  58. Find median
  59. Covariance matrix
  60. Pearson product-moment correlation
  61. Cross correlation
  62. Count the number of occurrences
  63. Create random int numpy array with specific shape
  64. Create 4 different integers from 0, 40.
  65. Create 4 different integers from 0, 4.
  66. Shuffle
  67. Shuffling by permutation
  68. Seed for random
  69. Get unique elements
  70. Create a boolean array with a shape of x
  71. Find unique intersection
  72. Find the diff
  73. Trying to inverse a singular matrix
  74. Find the union
  75. Element Sum
  76. Pretty print - suppress the scientific notation
  77. Print with decimal format
  78. Convert flot array to int array
  79. array vs asarray
  80. Numpy Datetime
  81. Numpy Datetime with arange
  82. Compare Numpy datetime
  83. Numpy 2D array flat list
  84. Numpy 2D array to flat list
  85. Numpy array to Pandas Dataframe
  86. Numpy to Dataframe by using from_records
  87. Append with hstack
  88. Ravel vs. Flatten
  89. Ravel and Flatten with assignment
  90. Numpy Concatenate
  91. Reverse 1D array
  92. Reverse 2D Array
  93. Reverse 2D array with elements
  94. Image as an array
  95. Array with prefilled values
  96. Delete specific indices
  97. Deleting specific elements
  98. Boolean Numpy Array
  99. Array of NaN
  100. Replace values with specific condition
  101. Selecting specific columns
  102. Vectorize
  103. If condition on Numpy array on the fly
  104. If condition and sum on Numpy colum
  105. Using Vectorize function on Numpy
  106. Apply Along Axis on Numpy Matrix
  107. Sort the arry by using
  108. Numpy Roll
  109. Roll elements
  110. Array Append on Axis 0 and Axis 1
  111. Rearrange array with specified index
  112. Serialize array with pickle
  113. Transpose
  114. Continguous Array
  115. Numpy Reshape with Order
  116. Element-wise math
  117. Where with multiple condition
  118. Subtract Outer
  119. Multiply Outer
  120. Immutable Array
  121. Float anomalies in Numpy Arange
  122. Complex number and absolute value
  123. Set Error in Numpy
  124. Convert List of List String to Numpy Array
  125. Resize a list with rounds
  126. Print columns by index
  127. Initalize array with tuples
  128. Rearrange with permutation

About

A DevDotCom x Coding Club JISCE initiative to Practice Numpy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published