var el = document.getElementById('id');
if (typeof elem.textContent !== "undefined") {
el.textContent = 'text';
} else {
el.innerText = 'text';
}
el.innetHTML = '<p>text</p>'
overflow: hidden
from scipy.interpolate import interp1d
x = [2, 6, 12, 24]
y = [1, 3, 6, 12]
new_y = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
f_interp = interp1d(x , y, bounds_error=False)
print(f_interp(new_y))