TGViewer
پایتون | Data Science | Machine Learning پایتون | Data Science | Machine Learning @python4all_pro · 24.3K subscribers
Post #1036 2.84K
#NumPy cheat sheet for #datascience :

*Array Creation*

1. numpy.array() - Create an array from a list or other iterable.
2. numpy.zeros() - Create an array filled with zeros.
3. numpy.ones() - Create an array filled with ones.
4. numpy.empty() - Create an empty array.
5. numpy.arange() - Create an array with evenly spaced values.
6. numpy.linspace() - Create an array with evenly spaced values.

*Array Operations*

1. + - Element-wise addition.
2. - - Element-wise subtraction.
3. * - Element-wise multiplication.
4. / - Element-wise division.
5. ** - Element-wise exponentiation.
6. numpy.sum() - Sum of all elements.
7. numpy.mean() - Mean of all elements.
8. numpy.median() - Median of all elements.
9. numpy.std() - Standard deviation.
10. numpy.var() - Variance.

*Array Indexing*

1. arr[i] - Access ith element.
2. arr[i:j] - Access slice from ith to jth element.
3. arr[i:j:k] - Access slice with step k.

*Array Reshaping*

1. arr.reshape() - Reshape array.
2. arr.flatten() - Flatten array.
3. arr.ravel() - Flatten array.

*Array Manipulation*

1. numpy.concatenate() - Concatenate arrays.
2. numpy.split() - Split array.
3. numpy.transpose() - Transpose array.
4. numpy.flip() - Flip array.

*Mathematical Functions*

1. numpy.sin() - Sine.
2. numpy.cos() - Cosine.
3. numpy.tan() - Tangent.
4. numpy.exp() - Exponential.
5. numpy.log() - Natural logarithm.

*Statistical Functions*

1. numpy.min() - Minimum value.
2. numpy.max() - Maximum value.
3. numpy.percentile() - Percentile.
4. numpy.quantile() - Quantile.

*Random Number Generation*

1. numpy.random.rand() - Random numbers.
2. numpy.random.normal() - Normal distribution.
3. numpy.random.uniform() - Uniform distribution.

*Linear Algebra*

1. numpy.dot() - Dot product.
2. numpy.matmul() - Matrix multiplication.
3. numpy.linalg.inv() - Matrix inverse.

#cheat_sheet #Python
🆔 @Python4all_pro
  • 👍 5
More from @python4all_pro
  1. Oct 2, 2026با هوش مصنوعی فقط کد تولید نکن؛ محصول بساز. بوت‌کمپ ۷ روزه و عملی ساخت محصول واقعی با هوش…
  2. Oct 2, 2026💥 ۲۰۰ هزار تومان تخفیفِ بیشتر علاوه بر تخفیفِ ۷۵ درصدی موجود در سایت | اشتراک یک ساله فرا…
  3. Oct 2, 2026اگه کسب و کارت هوشمند نیست،وقتشه هوشمندش کنی! 🎓 دوره جامع ABA | دستیار کسب وکار هوشمند در…
  4. Oct 1, 2026ثبت نام دوره‌های تخصصی آموزش هوش مصنوعی شروع شد! اگه مدت‌هاست می‌خوای هوش مصنوعی رو جدی‌تر…
  5. Sep 29, 2026What better way to understand a powerful tool like Claude Code than to build your own vers…
  6. Sep 28, 2026🧨 ۲۰۰ آموزش جدید دیگر، جایگزین آموزش‌های قبلی شد... 💯 ۴۰۰+۲۰۰ آموزش در فرادرس، هر آموزش…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →