text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

test = pd.read_csv('../input/mobile-price-classification/test.csv')
train = pd.read_csv('../input/mobile-price-classification/train.csv')

numerical = ['battery_power', 'clock_speed', 'fc', 'int_memory', 'm_dep', 'mobile_wt', 'n_cores', 'pc', 'px_height', 'px_width', 'ram', 'sc_h', 'sc_w', 'talk_time']
categorical = ['blue', 'dual_sim', 'four_g', 'three_g', 'touch_screen', 'wifi']

fig = plt.figure(figsize=(15, 20))
for i, col in enumerate(numerical):
    ax = plt.subplot(5, 3, i + 1)
    train[col].plot.hist(ax=ax).tick_params(axis='x', labelrotation=360)
    ax.legend(loc='upper center', bbox_to_anchor=(0.5, 1.1))
plt.show()