cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to bold a text ?

AJ270990
Contributor II

I have searched several ways on applying a bold to a text however unable to achieve it.

Have added '\033[1m' then my text and followed by '\033[0m', however cant see the text as bold.

I need to apply Bold to the Header "Ocean" in below image which is in Dataframe

imagefor row in Nlargest_map_df.index:

 array = '\033[1m'+""+Nlargest_map_df['County'][row]+'\033[0m'+"\nMarket Size : "+Nlargest_map_df['Market Size'][row]+"K"+"\nMarket Growth : "+Nlargest_map_df['Market Growth'][row]+"%"+"\nMarket Leader : "+Nlargest_map_df['Market Leader'][row]+"\n"  

1 ACCEPTED SOLUTION

Accepted Solutions

AJ270990
Contributor II

I have used plt.text() to make text bold

View solution in original post

3 REPLIES 3

Aashita
Contributor III
Contributor III

Are you using Databricks platform?

if Yes here's and example-

%md
## Databricks

@Aashita Ramtekeโ€‹  Thanks but I am not looking for markdown.

I am writing some text on an image, so I am taking a text variable for the text. I need to bold that text.

AJ270990
Contributor II

I have used plt.text() to make text bold