인프런 커뮤니티 질문&답변
[해결] 그래프를 통한 기초 데이터 분석 "ValueError: `orient` must start with 'v' or 'h' or be None, but `'V'` was passed."
해결된 질문
작성
·
381
2
def plot_bar(data, feature): fig = plt.figure(figsize=(12,3)) sns.barplot(x=feature, y='cnt', data=data, palette='Set3', orient='V') 
plot_bar(df, 'hour')
선생님이 작성하신대로 치면
ValueError: orient must start with 'v' or 'h' or be None, but 'V' was passed.
가 나옵니다.
def plot_bar(data, feature):
    fig = plt.figure(figsize=(12,3))
    sns.barplot(x=feature, y='cnt', data=data, palette='Set3', orient='v')
로 소문자 v로 orient를 잡아야 정상적으로 표가 표출됩니다.
답변
답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!





