Q. Take a DataFrame of your choice. Write a program to calculate count of value only in a selective column.
Answer =
import pandas as pd import numpy as z dict = { 'name' : [1, 2, 3], 'name2' : [11, 22, 44] } df = pd.DataFrame(dict) print( df[ 'name' ].count())
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )