Python Lab Work: 2-05-2023

For IDS, we are told to solve Numericals on various correlation coefficients that are given in Moodle.

In Python Lab work, all the experiments that Saurabh Sir has provided in the whatsApp group have to "performed" in the Google Collab and it will be checked(maybe-a big one) at the time of Practicals, whatever experiments we have performed on our notebooks.


import pandas as pd

def buzz(data):
  ''' To take the Data and provide the Name and Team on basis of Ascending order of Sold Price '''
  # data.describe()
  # print(help(data.sort_values))
  # data.sort_values(by='SOLD PRICE',ascending=True,inplace=True)
  # print(data.head(10))
  # sold_prices=sorted(data['SOLD PRICE'])
  # print(sold_prices)

  # print(f"Name        Sold Prices in Acending Order")
  # for index,row in data.iterrows():
  #   row=list(row)
  #   print(f"{row[1]} from {row[4]}:   {row[-1]}")
  pass

''' Lab Work '''

# data=pd.read_csv('IPL IMB381IPL2013.csv')
# type(data)
# pd.set_option('display.max_column',7)
# data.head(10)
# list(data.columns)
# data.head(6).transpose()
# data.shape
# data.info()
# Storing in a variable( can also print without storing )
# sliced_data=data[0:5]
# sliced_data

Comments

Popular Posts