Created
January 22, 2024 05:29
-
-
Save smzn/b76c874372560060f1df656de905a1f2 to your computer and use it in GitHub Desktop.
diabetes_binary_health_indicators_BRFSS2015.csv
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 | |
# Load the dataset | |
file_path = '/content/drive/MyDrive/研究/糖尿病/Diabetes Health Indicators Dataset/diabetes_binary_health_indicators_BRFSS2015.csv' | |
data = pd.read_csv(file_path) | |
# Display the first few rows of the dataset | |
data | |
# Checking data types and unique values for each column | |
data_info = pd.DataFrame({ | |
"Column": data.columns, | |
"Data Type": data.dtypes, | |
"Unique Values": data.nunique() | |
}) | |
data_info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment