How to adjust output size in Pycharm
Generally in Pycharm IDE by default five columns of a Dataframe are shown as output. But whenever the user wants to see most or all of the columns, this becomes an issue. Therefore there is a technique where the user can avoid this just by adding a simple code given below:
number_of_columns = 30
pd.set_option('display.width', desired_width) np.set_printoptions(linewidth=desired_width) pd.set_option('display.max_columns',number_of_columns)
Here the desired width is in output pixels and the number of
columns can be set according to the users needs.
display.width and display.max_columns are the attributes of
set_option of pandas.
Comments
Post a Comment