강의

멘토링

커뮤니티

Inflearn Community Q&A

babelai's profile image
babelai

asked

[For Beginners] Machine Learning with Kaggle • Deep Learning Analysis

Basic data analysis through graphs

[해결] 그래프를 통한 기초 데이터 분석 "ValueError: `orient` must start with 'v' or 'h' or be None, but `'V'` was passed."

Resolved

Written on

·

398

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를 잡아야 정상적으로 표가 표출됩니다.

 

 

 

 

 

 

 

 

머신러닝딥러닝kaggle오류수정

Answer

This question is waiting for answers
Be the first to answer!
babelai's profile image
babelai

asked

Ask a question