Cộng đồng Hỏi & Đáp của Inflearn
[해결] 그래프를 통한 기초 데이터 분석 "ValueError: `orient` must start with 'v' or 'h' or be None, but `'V'` was passed."
Đã giải quyết
Viết
·
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오류수정
Câu trả lời
Câu hỏi này đang chờ câu trả lời
Hãy là người đầu tiên trả lời!





