How to print part of html table?

I have a table where 7 columns, there is a button to print this table. How do I hide columns when printing I do not want to print?
June 14th 19 at 18:03
1 answer
June 14th 19 at 18:05
@media print {
table,tr,td{
border:none;
}
}

Oops. Did not understand correctly)))
https://jsfiddle.net/Politonius/g55ha4aa/

Find more questions by tags HTML