728x90
In [ ]:
import pandas as pd
In [ ]:
prices = pd.read_csv('/content/sample_data/prices.csv', squeeze=True)
In [ ]:
# Apply Sum
prices.sum()
Out[ ]:
2498821.9739999995
In [ ]:
# Apply count
prices.count()
Out[ ]:
541910
In [ ]:
# the maximum value
prices.max()
Out[ ]:
38970.0
In [ ]:
# the minimum value
prices.min()
Out[ ]:
-11062.06
In [ ]:
# all statistical information
prices.describe()
Out[ ]:
count 541910.000000
mean 4.611138
std 96.759765
min -11062.060000
25% 1.250000
50% 2.080000
75% 4.130000
max 38970.000000
Name: Price, dtype: float64
728x90
'Data Analytics with python > [Data Analysis]' 카테고리의 다른 글
[Pandas][Series]S1_11_Indexing (0) | 2023.01.17 |
---|---|
[pandas][Series]S1_10_Checking element (0) | 2023.01.17 |
[Pandas][Series] S1_06_Reading data (CSV) (0) | 2023.01.17 |
[Pandas][Series] S1_05_Methods: 기본 함수 (0) | 2023.01.17 |
[Pandas][Series] S1_04_Attributes: 기본 속성 (0) | 2023.01.17 |
댓글