Posts

Showing posts from October, 2023

Simple word cloud on msg array

  from wordcloud import WordCloud def plt_word_cloud ( text ):     wordcloud = WordCloud().generate(text)     # take relative word frequencies into account, lower max_font_size     wordcloud = WordCloud(background_color= "white" ,max_words= 120 ,max_font_size= 40 , relative_scaling= 1 ).generate(text)     fig = plt.figure(figsize=( 10 , 8 ))     plt.imshow(wordcloud)     plt.axis( "off" )     plt.show() def prepare_cloud_text ( df , name = 'None' ):     df[ 'message' ]= df[ 'message' ]. str .replace( 'omitted' , ' ' )     df[ 'message' ]= df[ 'message' ]. str .replace( 'media' , ' ' )     text= ''     if name== 'None' :         k = df[ 'message' ]     else :         k = df[df[ 'name' ]==name][ 'message' ]     for i in k:         text = text+i     text = (text.encode( 'ascii' , 'ignore' )).decode( 'ascii' )     return text te

Building a Better Future: Pathways Over Chariots

Title: Introduction: Life is a journey we all embark on, a road that stretches far into the horizon. Along this journey, we may have different vehicles, metaphorical chariots if you will, that carry us forward. Some may ride in luxurious, gilded chariots, while others rely on more modest means. However, the truth is that the condition of the path we all travel on touches every one of us, regardless of our chariots. In this blog post, we will explore the idea that our primary focus should be on constructing superior pathways in life, rather than fixating on the material trappings of our chariots. Furthermore, it's an undeniable fact that the common man of today enjoys more facilities and conveniences than the kings of the last century. The Universal Road: Life is an equal opportunity journey. No matter our background, wealth, or status, we all find ourselves navigating the same path - a path filled with challenges, joys, setbacks, and triumphs. This path is universal, and its condit