Skip to content

Instantly share code, notes, and snippets.

@smzn
Created January 22, 2024 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smzn/b76c874372560060f1df656de905a1f2 to your computer and use it in GitHub Desktop.
Save smzn/b76c874372560060f1df656de905a1f2 to your computer and use it in GitHub Desktop.
diabetes_binary_health_indicators_BRFSS2015.csv
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