VowpalWabbit / vowpalwabbit.github.io

Official website of Vowpal Wabbit
https://vowpalwabbit.org
MIT License
4 stars 17 forks source link

Displaying train and test data #147

Open guijoe opened 4 years ago

guijoe commented 4 years ago

Hello world,

This is probably not a significant issue, but it can be quite confusing especially for beginners.

In the VW contextual bandits tutorial (https://vowpalwabbit.org/tutorials/contextual_bandits.html), when comes the time to print the header of the header of training and testing dataframes, the code says

train_df.head() train_df.head()

This code did not display anything in my case. I had to wrap each line inside a print statement in order for the data frames to be displayed in the console.

print(train_df.head()) print(train_df.head())

Again this is probably not a big issue.

Thank you !

jackgerrits commented 4 years ago

Hi @guijoe, thanks for the comment! Yeah, I agree with you that is potentially confusing. This was originally written with the intention it would be run in a Jupyter notebook, but in the form it is presented that is not clear.