from pandas import *

l1=[("Rekha","kiran","ritvik","Pranav"),(401,402,403,404)]
l2=["rekha","kiran","ritvik","pranav"]
d1=DataFrame(l1)
d2=Series(l2)
print("DAta frame can accept 2d array or list of tuples",d1)
print("returns the shape of it as 2d with 4 objects in it",d1.shape)
print("one dimensional array with 4 objects in it",d2.shape)
print("Series can accept only 1d array or list:\n",d2)
print("size of d1 i.e total number of objects present in d1 is",d1.size)
print("size of d2 i.e total number of objects present in d2 is",d2.size)
print("prints the dimensions of d1 array",d1.ndim)
print("prints the dimension of d2",d2.ndim)
#reading data from external csv file
#we have to give double slash to read the file from esires location\\"
data1=read_csv("C:\\Users\\ahaly\\OneDrive\\Desktop\\marks.csv")
df1=DataFrame(data1)
df2=df1
print(df1)
print(df2)
969381e7eb9018ee10943f798763c8be6bfe320f
<mask token>

<mask token>
print('DAta frame can accept 2d array or list of tuples', d1)
print('returns the shape of it as 2d with 4 objects in it', d1.shape)
print('one dimensional array with 4 objects in it', d2.shape)
print('Series can accept only 1d array or list:\n', d2)
print('size of d1 i.e total number of objects present in d1 is', d1.size)
print('size of d2 i.e total number of objects present in d2 is', d2.size)
print('prints the dimensions of d1 array', d1.ndim)
print('prints the dimension of d2', d2.ndim)
<mask token>
print(df1)
print(df2)

<mask token>
l1 = [('Rekha', 'kiran', 'ritvik', 'Pranav'), (401, 402, 403, 404)]
l2 = ['rekha', 'kiran', 'ritvik', 'pranav']
d1 = DataFrame(l1)
d2 = Series(l2)
print('DAta frame can accept 2d array or list of tuples', d1)
print('returns the shape of it as 2d with 4 objects in it', d1.shape)
print('one dimensional array with 4 objects in it', d2.shape)
print('Series can accept only 1d array or list:\n', d2)
print('size of d1 i.e total number of objects present in d1 is', d1.size)
print('size of d2 i.e total number of objects present in d2 is', d2.size)
print('prints the dimensions of d1 array', d1.ndim)
print('prints the dimension of d2', d2.ndim)
data1 = read_csv('C:\\Users\\ahaly\\OneDrive\\Desktop\\marks.csv')
df1 = DataFrame(data1)
df2 = df1
print(df1)
print(df2)

from pandas import *
l1 = [('Rekha', 'kiran', 'ritvik', 'Pranav'), (401, 402, 403, 404)]
l2 = ['rekha', 'kiran', 'ritvik', 'pranav']
d1 = DataFrame(l1)
d2 = Series(l2)
print('DAta frame can accept 2d array or list of tuples', d1)
print('returns the shape of it as 2d with 4 objects in it', d1.shape)
print('one dimensional array with 4 objects in it', d2.shape)
print('Series can accept only 1d array or list:\n', d2)
print('size of d1 i.e total number of objects present in d1 is', d1.size)
print('size of d2 i.e total number of objects present in d2 is', d2.size)
print('prints the dimensions of d1 array', d1.ndim)
print('prints the dimension of d2', d2.ndim)
data1 = read_csv('C:\\Users\\ahaly\\OneDrive\\Desktop\\marks.csv')
df1 = DataFrame(data1)
df2 = df1
print(df1)
print(df2)

from pandas import *

l1=[("Rekha","kiran","ritvik","Pranav"),(401,402,403,404)]
l2=["rekha","kiran","ritvik","pranav"]
d1=DataFrame(l1)
d2=Series(l2)
print("DAta frame can accept 2d array or list of tuples",d1)
print("returns the shape of it as 2d with 4 objects in it",d1.shape)
print("one dimensional array with 4 objects in it",d2.shape)
print("Series can accept only 1d array or list:\n",d2)
print("size of d1 i.e total number of objects present in d1 is",d1.size)
print("size of d2 i.e total number of objects present in d2 is",d2.size)
print("prints the dimensions of d1 array",d1.ndim)
print("prints the dimension of d2",d2.ndim)
#reading data from external csv file
#we have to give double slash to read the file from esires location\\"
data1=read_csv("C:\\Users\\ahaly\\OneDrive\\Desktop\\marks.csv")
df1=DataFrame(data1)
df2=df1
print(df1)
print(df2)