-1

Using Pandas I receive the following data frame:

                             _links                         code  \
0   {u'players': {u'href': u'http://api.football-d...       MUFC   

For testing purposes; is there a way to view the full links, in 'column' _links, when printing the data frame?

For example, I'd like the output to appear as followed:

                                    _links                                         code  \
0   {u'players': {u'href': u'href":"http://api.football-data.org/v1/teams/66       MUFC  
Enigmatic
  • 3,902
  • 6
  • 26
  • 48

1 Answers1

2

You need set max_colwidth, see docs:

#if need temporary set option
with pd.option_context('display.max_colwidth', 100):
    print (df)
                                                                      _link  \
0  {u'players': {u'href': u'href':'http://api.football-data.org/v1/teams/66   

   code  
0  MUFC  

If need change default value (50):

 pd.set_option('max_colwidth', 100)
jezrael
  • 822,522
  • 95
  • 1,334
  • 1,252