Python Bytes - Panda Dataframe Print Index

Published: 03 May 2023
on channel: AC
1,424
17

#Coded by Andrew C

import pandas as pd
from sklearn import datasets

wine_dataset = datasets.load_wine()

wine = pd.DataFrame(wine_dataset.data, columns=wine_dataset.feature_names)

for idx in wine.index:
print(idx, end = '. ')


Watch video Python Bytes - Panda Dataframe Print Index online without registration, duration hours minute second in high quality. This video was added by user AC 03 May 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,424 once and liked it 17 people.