text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

data = pd.read_csv('../input/Wholesale customers data.csv')
data.shape

data.describe().T

data.Region.value_counts()

data.Channel.value_counts()

dataset = data.copy()

def continous_data(i):
    if dataset[i].dtype != 'object':
        plt.clf()

def categorical_data(i):
    dataset[i].value_counts().plot(kind='bar')
j_1 = ['Channel', 'Region']
for k in j_1:
    categorical_data(i=k)
    plt.show()