python: traceback basics + raise from (beginner - intermediate) anthony explains #283

preview_player
Показать описание
today I talk about tracebacks! how to read them, why python's are the right-side-up, and how `raise from` affects multi-tracebacks!

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

Tracebacks are very good for human readable bug solving, but what would be a good way to signal exceptional behaviour to a caller without exception handling; e.g. a command line python script that may be run as a step in a toolchain, like a windows .bat file? I guess there is no standard way and the errors you raise are based on whatever the caller is, which as a rule of thumb for python is more python code (so exceptions are the richest error feedback mechanism to the caller).

realvatican
Автор

thanks bro 4 ur video it really help me a lot😍

d__priyanshuurwate
Автор

hello sir i have a same problem Traceback with pandas library like
1.line 970, in _finalize_columns_and_data
columns = _validate_or_indexify_columns(contents, columns)
2. line 1018, in
raise AssertionError(
AssertionError: 12 columns passed, passed data had 17 columns
3. line 511, in nested_data_to_arrays
arrays, columns = to_arrays(data, columns, dtype=dtype)
4. line 876, in to_arrays
content, columns = _finalize_columns_and_data(arr, columns, dtype)
5. line 973, in _finalize_columns_and_data
raise ValueError(err) from err

and pandas\core\frame.py"
1. line 745, in __init__
arrays, columns, index = nested_data_to_arrays,

i am trying to do the data i have fetched with selenium, made to a table then i will download it to csv.
can you make a video tutorial on how to solve this.

behindyou