Skip to content

Bubble sort repeatedly compares adjacent items and swaps them when out of order. It is useful for learning sorting, but Python’s built-in sorted() and list.sort() are preferable for production code. Bubble sort is an algorithm that compares the adjacent elements and swaps their positions if they are not in the intended order. It makes multiple passes through a list. Each pass through the list places the next largest value in… Read More »Bubble Sort in Python: Algorithm, Code and Complexity

Bubble Sort in Python: Algorithm, Code and Complexity

  • by

Word’s equation editor can create a 4×4 matrix using the Matrix gallery and inserted rows or columns. Linear equation input may offer a quicker method on supported versions. Two ways to get custom size Matrix in Word Normal: Insert 3 x 3 matrix and keep adding additional rows and columns Smart: Use shortcut i.e. \matrix(@@@&&&). @ and & are used to represent rows and columns, respectively. Equation editor method is… Read More »Insert a 4×4 Matrix in Word: Equation Editor and Linear Input

Insert a 4×4 Matrix in Word: Equation Editor and Linear Input

  • by

Learn practical pandas DataFrame operations for inspecting, cleaning and summarizing tabular data. This guide distinguishes properties such as shape from callable methods such as head(), describe() and dropna(), with reproducible examples. It provides many functions and methods to expedite the data analysis process. In this post, I will explain 10 pandas functions with examples. Some of them are so common that I’m sure you have used before and some might… Read More »10 Essential pandas DataFrame Methods and Properties (With Examples)

10 Essential pandas DataFrame Methods and Properties (With Examples)