算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
visualizations【设计与创意】Guides missingno matrix, bar, heatmap, and dendrogram missing-data visualization workflows, configuration, interpretation, and plotting troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks how to make, configure, interpret, save, or
troubleshoot missingno plots for pandas DataFrames.
| Need | Use | Why |
|---|---|---|
| See row-by-row and column-by-column missingness patterns | msno.matrix(df, ...) | Dense nullity matrix with optional sparkline for row completeness. |
| Compare per-column completeness counts/ratios | msno.bar(df, ...) | Simpler bar view for variable completeness, with optional log scale. |
| Find pairwise nullity correlation between variables | msno.heatmap(df, ...) | Correlates missing/present masks and annotates relationships. |
| Group variables by similar missingness patterns | msno.dendrogram(df, ...) | Uses SciPy hierarchical clustering of nullity masks. |
For column filtering or completeness sorting before plotting, read ../nullity-utilities/SKILL.md.
import matplotlib.pyplot as plt
import missingno as msno
# df is a pandas.DataFrame.
ax = msno.matrix(df, sparkline=False)
ax.figure.savefig("missingness-matrix.png", bbox_inches="tight")
plt.close(ax.figure)
In headless environments, set MPLBACKEND=Agg before running the script. For a
safe end-to-end package check, run the root helper:
../../scripts/missingno_smoke_check.py.
freq errors, dropped heatmap columns,
stale inline/geoplot mentions, and dependency issues.matrix for small to
medium column counts and bar when only completeness percentages are needed.heatmap;
explain that columns that are always full or always empty are removed before
correlation.dendrogram; consider filtering to relevant columns first.filter='bottom', n=..., and p=... preparation.matrix(freq=...), confirm the DataFrame
index is a PeriodIndex or DatetimeIndex and that the requested frequency
produces ticks found in the index range.geoplot or inline support for this snapshot.