【发布时间】:2021-03-20 23:07:09
【问题描述】:
我有一个包含 35 个特征的数据集。我想在一个小的多图表类型中绘制每个特征,如下所示:
现在,我可以使用以下代码一一绘制特征:
# libraries and data
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
# Make a data frame
df=pd.read_csv("mydataset.csv")
df.plot(y="feature1")
我怎样才能达到上图所示的结果?我需要类似的东西:
# read the data in a Dataframe object
# for each feature (column):
# plot the feature in the final small multiple chart
# render the full final chart
谢谢!
【问题讨论】:
标签: python pandas dataframe matplotlib charts