Issue
In a Jupyter Notebook, I am having a DataFrame named tradelines_df
. And I want to display it nicely, depending on a condition. Nicely means like this:
I have tried:
condition = True
if condition:
tradelines_df
but it is not displayed at all. I can write:
if condition:
print(tradelines_df)
But it is not nicely displayed:
Any ideas here?
Solution
Use display
if condition:
display(tradelines_df)
Answered By - Vaebhav
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.