yt.units.unit_object.Unit.ratsimp

Unit.ratsimp()

See the ratsimp function in sympy.simplify