CHATGPT AI
importing


import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

§ Markdown

# Q1. Load the Data file ( Breast Cancer CSV) into Python DataFrame and view top 10 rows


§ Code

df = pd.read_csv('breast_cancer.csv') #importing csv file into dataframe using pandas library
df.head(10) #viewing top 10 rows of the dataframe



§ Output

> [' ID ClumpThickness Cell Size Cell Shape Marginal Adhesion \\\n', '0 1000025 5 1 1 1 \n', '1 1002945 5 4 4 5 \n', '2 1015425 ... \n', '0 1 2 \n', '1 1 2 \n', '2 1 2 \n', '3 1 2 \n', '4 1 2 \n', '5 1 4 \n', '6 1 2 \n', '7 1 2 \n', '8 5 2 \n', '9 1 2 ']


§ Code

































#end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1##end of q1##end of q1##end of q1##end oqfqfqfqfqfqfqfqffqqqqqqqqqqqqqqqqqqqqfffffffffffffffffffffffsdfsfsfsfsfsfsfsfsfsffsdfsdsdsdsdsdsdsssssssssssssssssssfdddddddddddddddddddfffgggggggggggggggghhhhhhhhhhhhhhhhhaaaaaaaaaaaaaaaaq11111111111111111
import pandas as pd import numpy as np import matplotlib.pyplot as plt %matplotlib inline § Markdown # Q1. Load the Data file ( Breast Cancer CSV) into Python DataFrame and view top 10 rows § Code df = pd.read_csv('breast_cancer.csv') #importing csv file into dataframe using pandas library df.head(10) #viewing top 10 rows of the dataframe § Output > [' ID ClumpThickness Cell Size Cell Shape Marginal Adhesion \\\n', '0 1000025 5 1 1 1 \n', '1 1002945 5 4 4 5 \n', '2 1015425 ... \n', '0 1 2 \n', '1 1 2 \n', '2 1 2 \n', '3 1 2 \n', '4 1 2 \n', '5 1 4 \n', '6 1 2 \n', '7 1 2 \n', '8 5 2 \n', '9 1 2 '] § Code #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1# #end of q1##end of q1##end of q1##end of q1##end oqfqfqfqfqfqfqfqffqqqqqqqqqqqqqqqqqqqqfffffffffffffffffffffffsdfsfsfsfsfsfsfsfsfsffsdfsdsdsdsdsdsdsssssssssssssssssssfdddddddddddddddddddfffgggggggggggggggghhhhhhhhhhhhhhhhhaaaaaaaaaaaaaaaaq11111111111111111
0 Comments & Tags 0 Distribuiri 1 Views

Password Copied!

Please Wait....