Data Analytics with python/[Data Analysis]
[pandas][Series] S1_09_Math Operations
보끔밥0130
2023. 1. 17. 17:57
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