In the process of unified data processing, due to the lack of analysis of its spatio-temporal attributes, the fitting effect of the data corresponding to the same household is poor. Therefore, a unified method for spatio-temporal data of power grid based on Beidou grid code is proposed. After the sphere corresponding to the coverage area of the grid is divided proportionally, the mutual conversion relationship between the coordinates of the grid spatiotemporal data and the longitude and latitude of the grid positioning corner is established, and the ontology grid spatiotemporal data in the grid grid module is divided into different classes. In the data unification stage, based on the control points (spatiotemporal data of the target power grid), the nonlinear interpolation method is used to realize the unification of multivariate data, and the spatiotemporal data set of the target power grid is interpolated to obtain the coverage surface of the power grid data, so as to realize the data unification on the basis of elastic interpolation. In the test results, the unified data fitting statistical parameters and Ljung Box Q (18) parameters under the design method are at a high level, with good fitting effect.