Data science Python Pandas, statistics
I have created the same script as before now with Python Pandas.
What is Pandas?
Pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool,
built on top of the Python programming language.
How I get this pandas?
You have to install this module.
If you have already installed Python, then you have to install Pandas with the following command in your command line (terminal):
pip3 install pandas
How to use this module
In every Python script, it begins with
import pandas as pd
The script
import pandas as pd
data = [1152, 961, 2720,1364,1228,1795,1232,2171,2458,1055,2467,3372,4116,2780,4295,6745,7676,5692,1785,5425,5492,3796,4917,3416,2531,1112,7011,3433,2628,1753]
blog_request = pd.Series(data)
print("Mean:", round(blog_request.mean(),2))
print("median:", blog_request.median())
print("standard deviation", round(blog_request.std(),2))
print("Summe", blog_request.sum())
print("Maximum",blog_request.max())
print("Minium", blog_request.min())
print("Count the entries",blog_request.count())
The values in data are my blog request in the month September 2025.
The output
Mean: 3219.27
median: 2674.0
standard deviation 1927.11
sum 96578
max 7676
min 961
Count the entries 30
How to update the module
As every piece of software, you have to update this module, too.
It is easy, go to the command line (terminal) and type in
pip install pandas -U
Here is my output of my command line on Linux.
sven@fedora:~$ pip install pandas -U
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pandas in ./.local/lib/python3.13/site-packages (2.3.2)
Collecting pandas
Downloading pandas-2.3.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (91 kB)
Requirement already satisfied: numpy>=1.26.0 in ./.local/lib/python3.13/site-packages (from pandas) (2.3.2)
Requirement already satisfied: python-dateutil>=2.8.2 in ./.local/lib/python3.13/site-packages (from pandas) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in ./.local/lib/python3.13/site-packages (from pandas) (2025.2)
Requirement already satisfied: tzdata>=2022.7 in ./.local/lib/python3.13/site-packages (from pandas) (2025.2)
Requirement already satisfied: six>=1.5 in ./.local/lib/python3.13/site-packages (from python-dateutil>=2.8.2->pandas) (1.17.0)
Downloading pandas-2.3.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (12.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 9.7 MB/s 0:00:01
Installing collected packages: pandas
Attempting uninstall: pandas
Found existing installation: pandas 2.3.2
Uninstalling pandas-2.3.2:
Successfully uninstalled pandas-2.3.2
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
datasets 4.0.0 requires xxhash, which is not installed.
datasets 4.0.0 requires dill<0.3.9,>=0.3.0, but you have dill 0.4.0 which is incompatible.
datasets 4.0.0 requires fsspec[http]<=2025.3.0,>=2023.1.0, but you have fsspec 2025.7.0 which is incompatible.
datasets 4.0.0 requires multiprocess<0.70.17, but you have multiprocess 0.70.18 which is incompatible.
Successfully installed pandas-2.3.3
As every piece of software, this software has its own dependencies.