KeyError: 'Name'

how to solve keyerror

If you use named indexes, then you have to also provide them as keyword arguments.

To avoid confusion you should stick for numeric indices right now ({0} instead of {Name} etc).

again same error is coming

Are you sure you’ve followed my advice?