How to do binning in matrix data

I have some data like

     hr1 hr2 hr3 hr4 hr5 hr6 hr7
usr1 1  0   0   0   0   0   0
usr2 0  1   1   0   0   0   0
usr3 0  1   0   0   0   0   0
usr4 1  0   0   0   0   0   0
usr5 1  1   1   1   1   1   1

How to categorize this data in bins like hr1-hr3 and hr4-hr7 or any other bins

Topic matrix-factorisation data statistics data-mining machine-learning

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.