Post

Created by @johnd123
 at October 21st 2023, 9:27:43 pm.

Descriptive Statistics: In EDA, descriptive statistics help us understand the central tendency, variability, and distribution of the data. Pandas provides functions like mean(), median(), std(), and hist() to easily calculate and visualize these statistics.

# Calculating mean and median
print(data.mean())
print(data.median())

# Calculating standard deviation
print(data.std())

# Plotting a histogram
data['column'].hist()
plt.show()