<div dir="ltr">Indeed `tabl['col1', 'col99'].pprint()` is the right idiom for printing a subset of columns. I see the docs didn't include anything quite like that, so I added an example. See:<div>  <a href="https://github.com/astropy/astropy/pull/11354">https://github.com/astropy/astropy/pull/11354</a>.<div><br></div><div>BTW, starting with the next release of astropy (4.3) you can persistently include or exclude selected column names from being printed. This can be helpful if you have a table that has some uninteresting columns, or perhaps a very wide column that dominates printing. See:</div><div>  <a href="https://docs.astropy.org/en/latest/table/access_table.html#hiding-columns">https://docs.astropy.org/en/latest/table/access_table.html#hiding-columns</a></div><div><br></div><div>- Tom</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 26, 2021 at 4:45 AM Thomas Boch <<a href="mailto:thomas.boch@astro.unistra.fr">thomas.boch@astro.unistra.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Rick,<br>
<br>
What about:<br>
<br>
tabl['col1', 'col99'].pprint()<br>
<br>
?<br>
<br>
Cheers,<br>
<br>
Thomas<br>
<br>
Le 26/02/2021 à 09:54, Frederic V. Hessman a écrit :<br>
> Surely there's a simple way to pprint only selected columns of a table, something like<br>
><br>
>>>> tabl.pprint (names=['col1','col99'])<br>
> but I haven't seen anything obvious.  Yes, there are brute force work-arounds, but....<br>
><br>
> Rick<br>
> _______________________________________________<br>
> AstroPy mailing list<br>
> <a href="mailto:AstroPy@python.org" target="_blank">AstroPy@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/astropy" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/astropy</a><br>
<br>
_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@python.org" target="_blank">AstroPy@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/astropy" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/astropy</a><br>
</blockquote></div>