Login using Social Account
     Continue with GoogleLogin using your credentials
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.
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.
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...