Python

NumPy Data Distribution

Submitted by moazkhan on

In this tutorial you will learn:

  • What is data distribution?
  • How data distribution is carried out in Numpy?

Data Distribution

A data distribution is a listing that shows all the possible values within the given intervals or data limits. It also tells the number of occurrences of each element. Usually the distributed data is ordered from lowest to highest or alphabetically and chart or graphs are used to represent it.

Gym Management System Using Python

Submitted by razormist on
Gym Management System with Source Code is a Python program that can manage a person gym expense and calculate the equipment time usage. This program was created by the use Python language. The system is a console application that does not require a login account, the user can navigate the system by entering a certain numeric keys. The user can add new customer, create gym package, add new

Filtering NumPy Array

Submitted by moazkhan on

In this tutorial you will learn:

  • What is Array Filtering?
  • Boolean Array based filtering

Array Filtering

Separating specific elements based on a specific condition and making another array from those elements is called filtering. Filtering can be carried out either by iterating complete array and checking each element against a specific condition or it can be carried out using by applying a Boolean array on the given array which we want to filter out.

Boolean Array Based Filtering

NumPy Search Sort

Submitted by moazkhan on

In this tutorial you will learn:

  • NumPy searchsorted function()
  • How to use NumPy searchsorted?
  • Python syntax

NumPy searchsorted() function

NumPy searchsorted() function works well for the sorted arrays as this algorithm specifies the index into which the number should be inserted inorder to maintain a sequence and search order of the array. The seachsorted() alogirthm performs a binary search as it compares the target value to the middle element of the array and progresses accordingly.

Examples

TicTacToe Game in Python GUI

Submitted by donbermoy on
About the Project The TicTacToe GUI game starts with a GUI board. First, the player has to click on any box to start the game. It contains the Minimax algorithm, which is a decision rule used for a two-player game. You can also see the score of the players at the bottom of the board. A simple 2D GUI is provided for comfortable gameplay. The gameplay design is so simple that users won’t find it