工作簿在此:Tableau Public: Marvel_SuperHeros
这次主要挑战了一下Tableau制作雷(zhen)达(ma)图(fan)和放射条形图!!! 不过还是硬着头皮死磕到底。。。所幸最后总算成功了,效果还算满意~~~
整个流程分三步: 观察数据 > 数据预处理 > 可视化
一、观察/理解数据
总共5个字段【Name】【Attribute】【Name】【Gender】【Value】
df.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 180 entries, 0 to 179
Data columns (total 6 columns):
Name 180 non-null object
Attribute Name 180 non-null object
Gender 180 non-null int64
Value 180 non-null int64
dtypes: float64(1), int64(3), object(2)
memory usage: 8.5+ KB
df.Name.describe()
count 180
unique 30
top Captain America
freq 6
Name: Name, dtype: object
#Attribute Name中的唯一值
df['Attribute Name'].unique()
array(['Agility', 'Fighting Skills', 'Height', 'Intelligence', 'Speed',
'Strength'], dtype=object)