SEO Crawl Analysis Template : question #283
Replies: 1 comment 9 replies
-
I forgot to mention, if I run the widget code in python interpreter, it returns this line : but I can't run it in Jupyter... |
Beta Was this translation helpful? Give feedback.
-
Hello Elias, I wished I could contact you through mail but for some reasons I can't DM people on twitter.
So here I am and ask you a little help on your great tool and more specifically on https://www.kaggle.com/code/eliasdabbas/seo-crawl-analysis-template
I've been watching your video https://youtu.be/IZUBvDfDbqo
and I would like to make the code works with the following interactive tool :
In Jupyter notebook, when you execute the code :
def count_column_values(col_name, show_top=10, sort_others=False):
series = crawl_df[col_name].str.split('@@').explode()
print(f'Number of {series.name}s: {series.count():,}')
print(f'Number of pages: {len(crawl_df):,}')
print(f'{series.name}s per page: {series.count()/len(crawl_df):.2f}')
display(value_counts_plus(series, sort_others=sort_others, dropna=False, show_top=show_top))
widgets.interact(count_column_values,
col_name=crawl_df.select_dtypes('object').columns,
show_top=widgets.IntSlider(min=1, max=50, value=10));
it returns a line partially hidden like this :
So my question is, how do I get the interactive code like in your video please?
Thanks a lot for your great work!!
Beta Was this translation helpful? Give feedback.
All reactions