functions in lib, displays df in the notebook