API/CLN: consolidate truncate into NDFrame (panel had a separate method)

API: truncate error if before > after is now a ValueError (rather than AssertionError)
(related #5242)