Yii – Configurations
Configurations are used to create new objects or initializing the existing ones. Configurations usually include a class name and a list of initial values. They may also include a list…
Configurations are used to create new objects or initializing the existing ones. Configurations usually include a class name and a list of initial values. They may also include a list…
In this section, we will discuss the string operations with our basic Series/Index. In the subsequent we will learn how to apply these string functions on the DataFrame. Pandas provides…
Assume we want to create a behavior that will uppercase the βnameβ property of the component the behavior is attached to. Step 1 β Inside the components folder, create a file…
There are two kinds of sorting available in Pandas. They are β By labelBy Actual Value Let us consider an example with an output. import pandas as pd import numpy…
The behavior of basic iteration over Pandas objects depends on the type. When iterating over a Series, it is regarded as array-like, and basic iteration produces the values. Other data…
Reindexing changes the row labels and column labels of a DataFrame. To reindex means to conform the data to match a given set of labels along a particular axis. Multiple operations can be…
Behaviors are instances of the yii\base\Behavior class. A behavior injects its methods and properties to the component it is attached to. Behaviors can also respond to the events triggered by…
In this chapter we will see to create an event in Yii. To show events in action, we need data. Preparing the DB Step 1 β Create a new database. Database…
You can use events to inject custom code at certain execution points. You can attach custom code to an event, and when the event is triggered, the code gets executed. For example,…
The GridView widget takes data from a data provider and presents data in the form of a table. Each row of the table represents a single data item, and a…