Search code examples
pythoninverse

how to get the inverse of a log10 value in python?


y=np.log10(train_set["SalePrice"])

how do i find inverse of this ?? I want it to return back to the original value and not the scaled value


Solution

  • have a look here for logarithm inversion: https://www.rapidtables.com/math/algebra/Logarithm.html

    10 ** y should do the trick for you here