Forum Discussion

FilipFireFlyBI's avatar
FilipFireFlyBI
Icon for Resolver I rankResolver I
6 years ago
Solved

Titanic dataset with Python in Power BI for making visuals

Hi all,   I try to import titanic dataset in Power BI, and make some basic Python visualisations. In the query editor I can succelfully import the dataset using this Python code:      import...
  • Icey's avatar
    6 years ago

    Hi FilipFireFlyBI ,

    Try this:

    import numpy as np
    import pandas as pd
    import seaborn as sns
    import matplotlib.pyplot as plt
    sns.set_style('whitegrid')
    ax = sns.countplot(x='survived',data=dataset)
    plt.show()

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.