Last active
February 9, 2022 19:16
-
-
Save pesader/96d728bf195c0f90f95aa1b5a35a6920 to your computer and use it in GitHub Desktop.
[Standard deviation] #pandas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import os | |
FILENAME = 'data.csv' | |
DATA_DIR = 'data' | |
path = os.path.join(DATA_FOLDER, FILENAME) | |
df = pd.read_csv(path) | |
print(df.std()) | |
# output | |
# [3663 rows x 5 columns] | |
# Column1 10.575757 | |
# Column2 0.318273 | |
# Column3 0.299756 | |
# Column4 0.359156 | |
# dtype: float64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment