Posts

Showing posts with the label series in pandas examples

Featured post

How to Use Special Keys in UNIX

UNIX operating system has some special keys. These you can use to interrupt the program processing or to resume it. The file management and keys totally different in UNIX kinds of operating systems. 



An example of a UNIX special key and its use.
Special Keys in UNIX much useful to take action  when something happens.

1. Why You Need Program Interruption in UNIX.

A scenario where you made some mistake in the input command and you need to stop the further process. Then you can use the CTRL+C command. It is equal to the DELETE command.

2. List of UNIX Special Keys.

RETURN key 
The RETURN key signifies the end of a line of input. On any terminal, RETURN has a key of its own, or return may be typed by holding down the control key and typing a 'm'.

CTRL-m Key
Hint: Ctrl-m command is equal to RETURN key in Unix systems


DELETE Key
The DELETE key stops a program/command immediately, without waiting for it to finish. DELETE can be achieved equivalently with ctrl-c.
Hint: Ctrl-c Command you can use …

How to use Pandas Series Method top ideas

Image
I am sharing the ideas on how to use a series constructor on a dataset using Python pandas. ...
A series is an object of Pandas that represents a one-dimensional labeled array capable of holding any data type (integers, strings, floating-point numbers, Python objects, etc.).
Example of Dataframe data

Dataframe data


Example of Single Dimension Data
A single dimension data you can derive as (index, value):

 Index Value 1 10 2 40 3 01 4 99

So, in the above "Dataframe" when you pull out the data of a single column with its index, you can say it as one-dimensional data.

When one index has multiple values in brackets, you can say it as a multi-dimensional array. The example is (1, (10,20))
mySeries = pd.Series(data, index=index) Here, pd is a Pandas object, and data refers to a Python dictionary of "ndarray" or even a scalar value.
A Series is a single column of data from a DataFrame. It is a single dimension of data, composed of just an index and the data. How to get Values an…