Programming Articles - Page 572 of 3363

What is PEP for Python?

Vikram Chiluka
Updated on 20-Oct-2022 09:36:15

3K+ Views

In this article, we will explain to you the PEP i.e Python Enhancement Proposal in Python. PEP is an abbreviation for Python Enhancement Proposal. A PEP is a design document that informs the Python community or describes a new feature for Python, its processes, or its environment. The PEP should provide a brief technical description of the feature as well as its reasoning. PEPs are intended to be the primary mechanisms for proposing important new features, gathering community input on a problem, and documenting Python design decisions. The PEP author is responsible for building consensus within the ... Read More

What are universal functions for n-dimensional arrays in Python?

Vikram Chiluka
Updated on 20-Oct-2022 09:02:11

926 Views

In this article, we will explain universal functions in python and how they are applied to n-dimensional arrays. A universal function (or ufunc) is a function that operates on ndarrays element by element, providing array broadcasting, type casting, and a variety of other standard features. A ufunc, in other words, is a "vectorized" wrapper around a function that accepts a fixed number of scalar inputs and returns a fixed number of scalar outputs. They are simple mathematical functions in the NumPy library. Numpy includes a number of universal functions that support a wide range of operations. These functions contain ... Read More

What are some features of Pandas in Python that you like or dislike?

Vikram Chiluka
Updated on 20-Oct-2022 08:56:08

409 Views

In this article, we will look at some of the features of pandas that people like and dislike Pandas Pandas is a Python data analysis library. Wes McKinney founded pandas in 2008 out of a need for a robust and versatile quantitative analysis tool, and it has grown to become one of the most used Python libraries. It has a very active contributor community. Pandas is built on the foundations of two essential Python libraries: matplotlib for data visualization and NumPy for mathematical calculations. Pandas function as a wrapper around these libraries, allowing you to use fewer lines of code ... Read More

List a few statistical methods available for a NumPy array

Vikram Chiluka
Updated on 20-Oct-2022 08:54:52

286 Views

In this article, we will show you a list of a few statistical methods of NumPy library in python. Statistics is dealing with collecting and analyzing data. It describes methods for collecting samples, describing data, and concluding data. NumPy is the core package for scientific calculations, hence NumPy statistical Functions go hand in hand. Numpy has a number of statistical functions that can be used to do statistical data analysis. Let us discuss a few of them here. numpy.amin() and numpy.amax() These functions return the minimum and the maximum from the elements in the given array along the specified axis. ... Read More

Swift Program to Find Maximum Key-Value Pair in the Dictionary

Ankita Saini
Updated on 20-Oct-2022 08:26:18

2K+ Views

This tutorial will discuss how to write swift program to find maximum key-value pair in the dictionary. A dictionary is used to store data in the form of key-value pair in the collation without any defined-order. Here the type of the keys are same as well as the type of the values are also same. Each key is behave like an identifier for the associate value inside the dictionary and each value has a unique key. Swift dictionary is just like the real dictionary. It loop up values according to their identifier. Syntax Following is the syntax for creating dictionary ... Read More

Swift Program to Find Minimum Key-Value Pair in the Dictionary

Ankita Saini
Updated on 20-Oct-2022 08:25:11

908 Views

This tutorial will discuss how to write swift program to find minimum key-value pair in the dictionary. A dictionary is used to store data in the form of key-value pair in the collation without any defined-order. Here the type of the keys are same as well as the type of the values are also same. Each key is behave like an identifier for the associate value inside the dictionary and each value has a unique key. Swift dictionary is just like the real dictionary. It loop up values according to their identifier. Syntax Following is the syntax for creating dictionary ... Read More

Swift Program to sort the Dictionary

Ankita Saini
Updated on 20-Oct-2022 08:23:58

4K+ Views

This tutorial will discuss how to write swift program to sort a Dictionary. A dictionary is used to store data in the form of key-value pair in the collation without any defined-order. Here the type of the keys are same as well as the type of the values are also same. Each key is behave like an identifier for the associate value inside the dictionary and each value has a unique key. Swift dictionary is just like the real dictionary. It loop up values according to their identifier. Syntax Following is the syntax for creating dictionary − ... Read More

Swift Program to Check the dictionary is Empty

Ankita Saini
Updated on 20-Oct-2022 08:22:29

2K+ Views

This tutorial will discuss how to write swift program to check the dictionary is empty. A dictionary is used to store data in the form of key-value pair in the collation without any defined-order. Here the type of the keys are same as well as the type of the values are also same. Each key is behave like an identifier for the associate value inside the dictionary and each value has a unique key. Swift dictionary is just like the real dictionary. It loop up values according to their identifier. Syntax Following is the syntax for creating dictionary − var ... Read More

Swift Program to Find the Size of Dictionary

Ankita Saini
Updated on 20-Oct-2022 08:21:01

1K+ Views

This tutorial will discuss how to write swift program to find the size of dictionary. A dictionary is used to store data in the form of key-value pair in the collation without any defined-order. Here the type of the keys are same as well as the type of the values are also same. Each key is behave like an identifier for the associate value inside the dictionary and each value has a unique key. Swift dictionary is just like the real dictionary. It loop up values according to their identifier. Syntax Following is the syntax for creating dictionary − var ... Read More

Swift Program to display Armstrong Numbers Between Intervals Using Function

Ankita Saini
Updated on 20-Oct-2022 08:19:43

396 Views

This tutorial will discuss how to write Swift program to display Armstrong numbers between intervals using function The sum of nth power of individual digit of a number is equal to the number itself, then such type of number is known as Armstrong number. Suppose we have a number 407 so here n = 3 407 = 43 + 03 + 73 407 = 64 + 0 +343 407 = 407 Hence 407 is Armstrong number Suppose we have another number 2346, so here n = 4 2346 = 24 + 34 + 44 + 64 2346 = 16 + ... Read More

Advertisements