0% found this document useful (0 votes)
3 views13 pages

Python Data Handling: Series & DataFrame

The document outlines various methods for handling data using Python, specifically focusing on creating and manipulating Series and DataFrames. It includes examples of creating Series from lists, strings, NaN values, and dictionaries, as well as DataFrames from lists and dictionaries with custom indices. Additionally, it covers operations such as adding and deleting columns, accessing columns, and concatenating DataFrames.

Uploaded by

Lxshit Gupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views13 pages

Python Data Handling: Series & DataFrame

The document outlines various methods for handling data using Python, specifically focusing on creating and manipulating Series and DataFrames. It includes examples of creating Series from lists, strings, NaN values, and dictionaries, as well as DataFrames from lists and dictionaries with custom indices. Additionally, it covers operations such as adding and deleting columns, accessing columns, and concatenating DataFrames.

Uploaded by

Lxshit Gupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DATA HANDLING USING PYTHON

SERIES

1) To create a series using a list

Output

2) To create a series using String values

Output

3)Create a series using nan value


Commented [lg1]:
OUTPUT

4)Create a series using scalar value constant

Output

5) Create a series using [Link]

Output

6)Create a series using iloc func()


Output

7)Create a series using dictionary

Output

8) Create a series using Mathematical operations

Output

9)using slicing function in series

Output
10)Creating a series using loop

Output

11)Creating a series using head fucntion

Output

12)Create a series Having a unique name

Output
DATAFRAME

1)create an empty data frame

Output

2)creating an dataframe from list

Output

3)creating a dataframe from List of dictionaries

Output
4)Creating a dataframe with custom index

Output

5)Creating a Dataframe with Multiple lists

Output

6)Creating a dataframe with

Output
7) Adding two coulumns in a dataframe

Output

8)Deleting a coulomn from dataframe

Output
9)Write a program to demonstrate accessing of coulomns also
create a dataframe accessing the coulomns

Output1

Output2

Deleting a column form dataframe

Output

b)Using drop method


Output

c)using inplace

Output

11)concat operation in data frame

Output
INFORMATION PRACTICES

PRACTICAL FILE

SESSION 2025-2026

BY KUSHAGRA GUPTA
CLASS12-I
ROLLNO:20

You might also like