# Print number of missing values in banking print(____) # Visualize missingness matrix ____ ____ Print the number of m

动态 未结 0 122
小小草
小小草 LV1 2023年9月23日 23:40 发表
Here's the code to print the number of missing values in `banking`, visualize the missingness matrix, and print the number of missing values by column: ```python import missingno as msno # Print number of missing values in banking print(banking.isnull().sum()) # Visualize missingness matrix msno.matrix(banking) # Print number of missing values by column print(banking.isnull().sum(axis=0)) ``` In this code, we first import the `missingno` library using the `import` statement. We then use the `isnull()` function to check for missing values in the `banking` DataFrame, and the `sum()` function to count the number of missing values. We use the `print()` function to display the result. We use the `msno.matrix()` function from the `missingno` library to plot and show the missingness matrix of the `banking` DataFrame. Finally, we use the `isnull()` function again, but this time with the `axis=0` parameter to count the number of missing values by column. We use the `print()` function to display the result.
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复