1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

New PowerBI Desktop update

Discussion in 'The Lounge' started by Chihiro, Aug 16, 2018.

  1. Chihiro

    Chihiro Excel Ninja

    Messages:
    5,052
    Woot!

    They've added Preview feature integrating Python into PowerBi.

    https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-august-2018-feature-summary/#python

    Very simple sample script.
    Code (vb):
    import numpy as np
    import pandas as pd

    data = np.array([['','Col1','Col2'],
                   ['Row1',1,2],
                   ['Row2',3,4]])
                 
    df = pd.DataFrame(data=data[1:,1:],
                      index=data[1:,0],
                      columns=data[0,1:])
    Result:
    upload_2018-8-16_15-6-29.png

    You can also use it in Query Editor and Visuals.
    upload_2018-8-16_15-10-13.png
    shahin and Marc L like this.

Share This Page