Flash Sale: Flat 70% + Addl. 25% Off on all Courses | Use Coupon DS25 in Checkout | Offer Expires In

  Enroll Now

Loading the Data

The data is stored in the location /cxldata/projects/creditcard.csv.

Let us load the data to our work session and display the top 10 rows.

Note:

read_csv() reads a comma-separated values (csv) file into DataFrame.

head() displays the top 5 rows of the data frame, whereas head(n) displays the top n rows of the data frame.

shape of a data frame returns a tuple with the number of rows and columns of the data frame.

INSTRUCTIONS
  • Load the data into data from the location /cxldata/projects/creditcard.csv using pd.read_csv.

    data = << your code comes here >>('/cxldata/projects/creditcard.csv')
    
  • Display the top 10 rows stored in the dataframe data using head method.

    data.<< your code comes here >>(10)
    
  • Display the shape of data using shape.

    data.shape
    

Make sure to write each of these 3 lines in separate code-cells to be able to see the outputs.


No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...