Ejemplo n.º 1
0
 def test_geoplot_quadtree(self):
     msno.geoplot(self.x_y_df, x='r0', y='r1')
     return plt.gcf()
Ejemplo n.º 2
0
 def test_geoplot_quadtree(self):
     msno.geoplot(self.x_y_df, x='r0', y='r1')
     return plt.gcf()
Ejemplo n.º 3
0
import missingno as msno

#%% 数据
collisions = missingno_data.nyc_collision_factors()
collisions = collisions.replace("nan", np.nan)

#%%  Matrix
msno.matrix(collisions.sample(250))
#msno.matrix(busines_change)

#% 时间序列
null_pattern = (np.random.random(1000).reshape((50, 20)) > 0.5).astype(bool)
null_pattern = pd.DataFrame(null_pattern).replace({False: None})
msno.matrix(null_pattern.set_index(
    pd.period_range('1/1/2011', '2/1/2015', freq='M')),
            freq='BQ')

#%% Bar Chart
msno.bar(collisions.sample(1000))

#%%  Heatmap
msno.heatmap(collisions)

#%% Dendrogram
msno.dendrogram(collisions)

#%%  Geoplot
msno.geoplot(collisions, x='LONGITUDE', y='LATITUDE')

#%%