
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 10476 Articles for Python

9K+ Views
Monkey patching is the technique of dynamic modification of a piece of code at the run time. Actually by doing monkey patch we change the behavior of code but without affecting the original source code. History The monkey patch comes from the word guerrilla patch, guerrilla nearly means gorilla which can define the monkey species. The guerrilla patch refers to change sneakily. But money patch seems easy to pronounce, so now it's known as “ Monkey patch“. In the word “Monkey-patch” the word monkey defines the word dynamic. Monkey patching in python Monkey patching in python refers to modifying or ... Read More

2K+ Views
Python is a very popular programming language among the Developers and very easy to understand. Its syntax is also very simple to understand, like JAVA and C. But this popular language has some problems and one of the major problems is that it takes so long to start. There can be so many reasons for being slow in Windows Maybe the system configuration is not identical, particular for python. Malware virus slowing the window system. Too many applications running on the window system so python is not getting the proper resources. Slow Execution problem As you know python ... Read More

325 Views
As you know Python is ranked in topmost used programming language. Python programming language is easy to learn and easy to use. If you know the basics of python you can develop some easy projects like the TIC TAC TOE game and also you can enroll in easy python coding challenges. These coding challenges will help you to improve your coding logics and if you are an intermediate level python programmer you can take a python challenge to enhance your python skills to become a professional or experienced python programmer. Some python programming challenges for beginners. 1. Basic calculator. Basic ... Read More

3K+ Views
In this article, we will show you when we use the crosstab() and pivot_table() functions in Python Pandas. When to use crosstab or pivot_table The pivot table expects your input data to already be a DataFrame; you pass a DataFrame to the pivot table and specify the index/columns/values by passing the column names as strings. You don't need to pass a DataFrame into a cross tab because you just pass arraylike objects for index/columns/values. In general, use a pivot table if you already have a DataFrame so you don't have to create the same DataFrame twice. Use crosstab if you ... Read More

343 Views
Python is a powerful general-purpose interpreted programming language. In this article, we will go over how to prepare for a Python developer job interview by going over some of the major topics you must prepare for. Steps to Prepare for Python Interview 1)Review Data Structures and Algorithms(DSA) in Python if you haven’t already You should be able to compare and contrast simple Python data structures with other language abstract data structures, as well as explain how you can enforce stack features using existing Python data structures such as lists, or do a custom implementation of a class such as a ... Read More

4K+ Views
In this article, we will show you the differences between dataframe and matrices in python pandas. Both dataframes and matrices are 2-dimensional data structures. In general, dataframes can include multiple types of data (numeric, character, factor, etc) while matrices can only store one type of data. Dataframe in Python In Python, a DataFrame is a two-dimensional, tabular, mutable data structure that may store tabular data containing objects of various data types. A DataFrame has axes that are labeled in the form of rows and columns. DataFrames are useful tools in data preprocessing because they provide valuable data handling methods. DataFrames ... Read More

12K+ Views
In this article, we will look at some examples of runtime errors in Python Programming Language Runtime Errors A runtime error in a program is one that occurs after the program has been successfully compiled. The Python interpreter will run a program if it is syntactically correct (free of syntax errors). However, if the program encounters a runtime error - a problem that was not detected when the program was parsed and is only revealed when a specific line is executed - it may exit unexpectedly during execution. When a program crashes due to a runtime error, we say ... Read More

19K+ Views
In this article, we will show you how to select elements from a NumPy array in python. Numpy Array in Python A NumPy array is a central data structure of the NumPy library, as the name implies. The name of the library is an abbreviation for "Numeric Python" or "Numerical Python. NumPy, in other words, is a Python library that serves as the foundation for scientific computing in Python. One of these tools is a high-performance multidimensional array object, which is a powerful data structure for efficient array and matrix computation. We can select a single element or a subarray ... Read More

4K+ Views
In this article, we will show you how to flatten a matrix using the NumPy library in python. numpy.ndarray.flatten() function The numpy module includes a function called numpy.ndarray.flatten() that returns a one-dimensional copy of the array rather than a two-dimensional or multi-dimensional array. In simple words, we can say that it flattens a matrix to 1-Dimension. Syntax ndarray.flatten(order='C') Parameters order − 'C', 'F', 'A', 'K' (optional) When we set the order parameter to 'C, ' the array is flattened in row-major order. When the 'F' is set, the array is flattened in column-major order. Only when 'a' is ... Read More

22K+ Views
In this article, we will show you how to calculate the inverse of a matrix or ndArray using NumPy library in python. What is inverse of a matrix? The inverse of a matrix is such that if it is multiplied by the original matrix, it results in an identity matrix. The inverse of a matrix is just the reciprocal of the matrix, as in regular arithmetic, for a single number that is used to solve equations to obtain the value of unknown variables. The inverse of a matrix is the matrix that, when multiplied by the original matrix, produces the ... Read More