I want to capture all the warnings raised by a piece of code, store them and use them further to perform some operations. Is there a way to capture the same? Want the warnings related to skipped bad lines by pandas.read_csv to be captured.
Asked
Active
Viewed 9 times