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
Server Side Programming Articles - Page 552 of 2650
159 Views
To evaluate a 3D Legendre series on the Cartesian product of x, y and z use the polynomial.legendre.leggrid3d() method in Python Numpy. The method returns the values of the three dimensional Chebyshev series at points in the Cartesian product of x, and z. If c has fewer than three dimensions, ones are implicitly appended to its shape to make it 3-D. The shape of the result will be c.shape[3:] + x.shape + y.shape + z.shape.The 1st parameter is x, y, z. The three dimensional series is evaluated at the points in the Cartesian product of x, y and z. If ... Read More
147 Views
To evaluate a 3-D Hermite_e series on the Cartesian product of x, y and z, use the hermite_e.hermegrid3d(x, y, z, c) method in Python. The method returns the values of the two dimensional polynomial at points in the Cartesian product of x, y and z. The parameters are x, y, z. The three dimensional series is evaluated at the points in the Cartesian product of x, y, and z. If x, `y`, or z is a list or tuple, it is first converted to an ndarray, otherwise it is left unchanged and, if it isn’t an ndarray, it is treated ... Read More
519 Views
The idxmax() method of the pandas series constructor is used to get the index label of maximum value over the series data.As we know, the pandas series is a single-dimensional data structure object with axis labels. And we can access the label of a maximum value of the series object by applying the idxmax() method to that series object.The output of the idxmax method is an index value, which refers to the label name or row indices where the largest value exists. The data type of the idxmax() method has the same type of series index labels.If the maximum value ... Read More
168 Views
The series.gt() method in the pandas constructor performs the Greater Than condition operation between the elements of a series object with another (example: with series, or with scalar, or with list-like object). And it is equal to “series > Other”.Here we will see how the series.gt() method applies the Greater Than conditional operation on two input objects if their elements have string type data. In this case, the comparison is done with their ASCII values.We only need to compare a string element with a corresponding element with the same data type. Otherwise, it will raise the TypeError. We cannot compare ... Read More
861 Views
By using pandas series.gt() function, we can apply the Greater Than condition to the elements of a series with list elements. The series.gt() method is used to apply the element-wise Greater Than comparison operation between two objects. The two objects are series and other (series, scalar of sequence).Example 1Given below is an example of how the gt() method will apply Greater Than condition between series and list. Here, we will see how the series.gt() method works for series and a list.import pandas as pd import numpy as np # create pandas Series s = pd.Series([9, 103, 18, 31, 92]) ... Read More
2K+ Views
In the pandas series constructor, there is a method called gt() which is used to apply the Greater Than condition between elements of two pandas series objects.The result of the gt() method is based on the comparison between elements of two series objects. The operation is equal to “element of called_series > element of passed_series”.The resultant series object is filled with the boolean values(True Or False). True value indicates the element of called_series is Greater Than the element of passed_series. Revere for False.Example 1Given below is an example to compare two Pandas series objects by applying Greater Than condition using ... Read More
6K+ Views
By using the pandas series.gt() method we can check if the elements of a series object are Greater Than a scalar value or not. The gt() comparison operation is exactly equivalent to series > Other.Here “other” can be any single or multiple element data structure, or list-like object, for example, scalar, sequence, or a Series.To check the Greater Than comparison operation between elements of the given series with scalar, we need to send the scalar value as a parameter to the series.gt() method.The method returns a series with the result of Greater than of a series with a scalar. The ... Read More
330 Views
The pandas series.get() method is used to get or retrieve the item from the series object for a given key. It will return the default value instead of raising KeyError if the specified key is not found in the series object.The parameters for the get() method are key and default. Key is an object which is used to identify the item from the series. The default parameter has a default value which is None, we can change that value as required.The get() method’s output is value and has the same type as items contained in the series object.Example 1Let’s take ... Read More
151 Views
The series.ge() method in the pandas constructor performs the Greater Than or Equal To comparison operation between the elements of a series object with another (maybe another series or a scalar value). And this comparison operation is exactly equal to “series >= Other”.Here we will see how the series.ge() method performs the Greater Than or Equal to comparison operation on two input objects if their elements have string type data.If the series contains some string values then in that case the comparison is done with their ASCII values. And we only compare a string element with a corresponding element with ... Read More
309 Views
The series.ge() method in the pandas constructor is used to apply the Greater Than or Equal to comparison operation between elements of the given series with another (maybe another series or a scalar value). The comparison operation is exactly equivalent to series >= Other.To check the Greater Than or Equal comparison operation between elements of the given series with scalar, we will use this series.ge() method. Here we need to send the scalar value as a parameter to the series.ge() method. Then the method will compare the elements of the series object with the specified scalar value.As a result, the ... Read More