Install dependencies as needed:
pip install kagglehub[hf-datasets]
import kagglehub
from kagglehub import KaggleDatasetAdapter
Set the path to the file you'd like to load
file_path = ""
Load the latest version
hf_dataset = kagglehub.load_dataset(
KaggleDatasetAdapter.HUGGING_FACE,
"ersindemirel/pubhealthdataset",
file_path,
Provide any additional arguments like
sql_query, hf_kwargs, or pandas_kwargs. See
the documenation for more information:
)
print("Hugging Face Dataset:", hf_dataset)