This is an analysis of a dataset using python. The data being used was obtained from ‘'. The data set contains information on players from 49 different basketball leagues in the world which spans from seasons 1999 to 2020.


The general idea is to use data analysis modules like pandas, matplotlib and seaborn in python to find some statistical information from the dataset. This is a project being undertaken as part of the course Data Analysis with Python: Zero to Pandas, which has thought me a lot of useful features and function in python.

Downloading the Dataset

Here we download the dataset from…

source: (it has been edited a little)

Five Interesting Function

Pytorch is a library for processing tensors. A tensor can be a number, vector, matrix or any ndarray. There are various functions in the module that can be used to create and manipulate tensors. The five(5) functions we will learn are as follows:

  • torch.eye
  • torch.complex
  • torch.chunk
  • torch.dstack
  • torch.movedim

I will provide three examples each for each function. Two of the examples I provide will work and the last one will throw an error. We will find out why the error is returned and take note of why it happened.

Before we begin, let’s install and import PyTorch

Function 1. torch.eye

George K. Agyen

A graduate student who is interested and research and data analysis in environmental engineering.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store