C4_W1_Lab_1_Data_Normalization

When executing below I’m getting “KeyError: DEFAULT”

%%sql
select count(*) from classicmodels_obt.orders;

Please help

Thanks

Regards
Ranjit. S

Hello @ranjitsrinivasan,
I could reproduce the issue and getting the DEFAULT error. It seems its connected to the prettytable library. You can bypass this if you add a second cell after the libraries impoert. Code to ADD:

from prettytable import PrettyTable , PLAIN_COLUMNS
table = PrettyTable()
table.set_style(PLAIN_COLUMNS)

%config SqlMagic.style = ‘PLAIN_COLUMNS’

3 Likes

Georgios

above solution works

Thanks

thank you Georgios.

your solution works :slight_smile:

another solution is to add cell with:
%config SqlMagic.style = '_DEPRECATED_DEFAULT'

right after cell with:
%load_ext sql

@Konstantin Yes I noticed it happens in other labs of this course and as well, I reported the issue and should be fixed soon. Your solution should work too, thanks:

1 Like