Given the values incorporated in the table, we have the following reasoning :
At the points (-π/2, 4) and (π/2, 4) we have maximum values of the function, then, the period can be calculated as follows:
π/2 - (-π/2) = π
So the period in this case for the cosine function described is π.