Countvalues 0.0.1 | Coderz Repository

countvalues 0.0.1

Last updated:

0 purchases

countvalues 0.0.1 Image
countvalues 0.0.1 Images

Free

Languages

Categories

Add to Cart

Description:

countvalues 0.0.1

countvalues

Install
pip install countvalues

How to use
import pandas as pd
from countvalues.core import count_values

df = pd.read_csv('../data/titanic.csv')
df.head()


<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}

.dataframe thead th {
text-align: right;
}

</style>




PassengerId
Survived
Pclass
Name
Sex
Age
SibSp
Parch
Ticket
Fare
Cabin
Embarked




0
1
0
3
Braund, Mr. Owen Harris
male
22.0
1
0
A/5 21171
7.2500
NaN
S


1
2
1
1
Cumings, Mrs. John Bradley (Florence Briggs Th...
female
38.0
1
0
PC 17599
71.2833
C85
C


2
3
1
3
Heikkinen, Miss. Laina
female
26.0
0
0
STON/O2. 3101282
7.9250
NaN
S


3
4
1
1
Futrelle, Mrs. Jacques Heath (Lily May Peel)
female
35.0
1
0
113803
53.1000
C123
S


4
5
0
3
Allen, Mr. William Henry
male
35.0
0
0
373450
8.0500
NaN
S




count_values(df, 'Sex')


<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}

.dataframe thead th {
text-align: right;
}

</style>




Sex
count
percentual
cumulative_percentual




0
female
314
0.352413
0.352413


1
male
577
0.647587
1.000000

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.