text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

df1 = pd.read_csv('../input/spaceship-titanic/train.csv')
df2 = pd.read_csv('../input/spaceship-titanic/test.csv')

df1.describe(include='object').round().T

df2.describe(include='object').round().T

for df in [df1, df2]:
    df.isna().mean().plot(kind='barh', figsize=(10, 5))
    plt.show()
    print('')