I am aware of the equation to solve for the curvature of a curve. It is $\kappa = \displaystyle\frac{|r' \times r''|}{|r'|^3}$, where $r$ is the parametrization of the curve.
In the absence of the parametric equation, where only data points are given, how can you solve/approximate the curvature with error about $O(h^2)$?
As dbx mentioned in the comments, you can use the radius of a circle passing through three points. The curvature is the inverse of the radius. The radius can be found through $$ r = \frac{abc}{4k}, $$ where $a$, $b$ and $c$ denote the distances between the three points and $k$ denotes the area of the triangle formed by the three points. Obviously, the curvature is the reciprocal of this, thus $$ \kappa = \frac{4k}{abc} $$ I happened to code this in the past in python. Below is the code. I used Heron's formula for computing the area of the triangle $k$.
Additional note: this might not be optimal as only three points are used to compute the curvature. If more points are available, it would be beneficial to use them. Still, one can use the same approach: fit a circle through the datapoints and compute the reciprocal of the radius. However, it is not trivial to find the best circle fit for your data. For more information, see http://scipy-cookbook.readthedocs.io/items/Least_Squares_Circle.html.
Based on above's link, I wrote a small python script that shows how you can compute the curvature using a linear least squares fit. Here's the code: