0% found this document useful (0 votes)
2 views8 pages

Tanis Hq

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

Tanis Hq

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Informatics practices

Practical file
Program.1 create a panda’s series from a dictionary, list
and a ndarray ?
• From a Dictionary
Input

Output

• From a list
Input

Output

• From a ndarray
Input

Output

Program 2. Given a series, print all the elements that are


above the 75th percentile.

Input

Output

Program 3. create a Data frame quarterly sales where


each row contains the item category, item name and
expenditure. Group the rows by the category and print
the total expenditure per category.
Input

Output

Program 4.create a data frame for examination


result and display row labels
,columnlabels, data types of each column and the
dimensions.

Input

Output

Program 5. Create a Data Frame and rename all the


columns.

Input

Output

Program 6. create a Data Frame and drop a specific


column.

Input

Output
Program 7. Given a Data Frame, reset its index.

Input

Output

Program 8. create a pandas Data Frame from a


dictionary of lists.

Input

Output

Program 9. Filter out rows based on different criteria


such as duplicate rows.

input

Output

Program 10. Given a Data Frame, print all rows


where a specific column’s value is greater.

Input

Output
Programme 11. Add new row and column in dataframe.
Input

Output

Program 12. create Data frame with all methods.


From a dictionary of list
Input

Output

From a list of dictionary


Input

Output

From a numpy array


Input

Output

From a lists of list


Input

Output

Programe13. Use iloc[],jat[] in dataframe.

Input
Output

Programe14. Given a DataFrame, drop rows and


columns.
Input

Output

Programe15. Slicing In dataframe and series.


Slicing in dataframe
Input

Output

Slicing in series
Input

Output

Program 16. create a DataFrame and print its columns,index,


Size shape,axis and ndim attribute.
Input

Output

Program 17. create series using


list,dictionary,mathematical expression and ndarray.
From a list
Input
output

From a dictionary
Input

output

From a ndarray
Input

Output

From a Mathematical expression


Input

Output

Program 18. use head(),tail() function with series and DataFrame .


In series
Input

Output

In DataFrame
Input

output

Program 19. create a series and print its


index,values,dtype,shape,size,empty,name attribute.
Input
Output

Program 20. given a DataFrame, calculate the sum of


specific columns.
Input

Output

Program 21. group a DataFrame by a columns and calculate


the mean for each group .
Input

output

Program 22.Extract the top 3 rows of a DataFrame


where a specific column has the highest values.
Input

output

Program 23. Add a new columns to a Data Frame that contains


the results of multiplying two existing columns.
Input

Output

Program 24. create a DataFrame and sort it by a specific


columns in descending order .
Input

output

You might also like