Skip to content

vishwanath1306/CEGLUG-TASK-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello All

Second Task of LUG Projects

Given in this repository are 4 files, regarding the data of different fruits:

  1. number.csv contains the details of the ID of 100 fruits.

  2. fruits.csv contains the details of the Name of 100 fruits.

  3. price.csv contains the details of the Price of 100 fruits.

  4. rotten.csv has the data if that particular fruit is rotten or not.

In all the files, first entry is of first fruit, second entry of second fruit and so on.

Your task, if you choose to take it is:


  1. Due to improper validations done by the developer, a lot of IDs are missing. Make a not of those IDs, if they're odd then replace them, else delete the entire product

  2. Some names of the fruits are missing. If the ID of that fruit is missing, then delete it. If ID has been found, replace it with 10th fruit name to its left.

  3. Most of the prices are in float, where as some are missing or in int. Conver the price from int to float. If the fruit is rotten, declare price as 0.00

  4. As the entry was made by multiple people, they've used 1 or t for marking "true" and 0 or f for marking false. Convert it to t for true, f for false.

Once cleaned the data must be neatly organised in a file data.csv. It must be organised in the format ID,Name,Price,Rotten

BONUS: Try to plot a line graph between price of fruit and ID of the fruit using MatPlotLib library

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published