# import necessary libraries
import pandas as pd
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
# load the dataset
cancer = load_breast_cancer()
# convert the data to a Pandas dataframe
df = pd.DataFrame(cancer.data, columns=cancer.feature_names)
# add the target column to the dataframe
df['target'] = cancer.target
# view the dataset
print(df.head())