Ad
Code
Diff
  • import numpy as np
    import pandas as pd
    print("Hello World!")
    # initialize list of lists 
    data = [['tom', 10], ['nick', 15], ['juli', 14]] 
      
    # Create the pandas DataFrame 
    df = pd.DataFrame(data, columns = ['Name', 'Age']) 
    print(df)
    df2 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
    
                       columns=['a', 'b', 'c'])
    # print dataframe. 
    print(df2) 
    • import numpy as np
    • import pandas as pd
    • print("Hello World!")
    • # initialize list of lists
    • data = [['tom', 10], ['nick', 15], ['juli', 14]]
    • # Create the pandas DataFrame
    • df = pd.DataFrame(data, columns = ['Name', 'Age'])
    • print(df)
    • df2 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
    • columns=['a', 'b', 'c'])
    • # print dataframe.
    • print(df2)
Code
Diff
  • import numpy as np
    print("Hello World!")
    
    • from random import choice
    • _0 = "hello world!"
    • greet = lambda: choice((*globals().values(),))
    • import numpy as np
    • print("Hello World!")