Back

Sanskar

Keen Learner and Exp... • 21d

Day 2 of learning Data Science as a beginner. Topic: Data Cleaning and Structuring Today I decided to try my hands on cleaning raw data using pure python and my task was to 1. remove the data where there is no username present or if any other detail is missing. 2. remove any duplicate value from the user's details. 3. just take only one page in 104 (id of pages) out of the two different pages whom the id allotted is 104. for this I first created a function in which I created a loop which goes through every user's details and then I created an if condition using all keyword which checks whether every value is truly or not if all the values of a user is true then his details get printed however if there is any value which is not truly a valid dictionary value then that user's details will get omitted. Then I converted this details into a set in order to avoid any duplicate values in the final cleaned data. I also created program to avoid duplicate pages and for this I used a dictionary' key value pair because there can be only a unique key and it can contain only one value therefore using this I put each page and its unique page id into a dictionary. using these I was able to get a cleaned and more processed data using only pure python (as I said earlier I want to experience the problem before learning its solution). I am also open for any suggestions, recommendations and challenges which can help me in my learning process. Also here's my code and its result.

Reply
3

More like this

Recommendations from Medial

Image Description

Sanskar

Keen Learner and Exp... • 2m

Day 8 of learning python as a beginner. Topic: dictionary and sets. Yesterday I posted my dynamic to-do list program and I mentioned it there that I got introduced to dictionaries. Although many people suggested me what I should learn next but I pe

See More
2 Replies
9
Image Description

Sidharth Bidikar

Keep Moving • 1y

How can you remove duplicate values from a column in #Excel? #data #dataanalytics #dataanalysis #googlesheet

1 Reply
1
5
Image Description
Image Description

Grono

Taking AI to the Nex... • 8m

I created a Short Film using AI

4 Replies
4

Sanskar

Keen Learner and Exp... • 19d

Day 4 of learning Data Science as a beginner Topic: pages you might like Just like my previous post where I created a program for people you might know using pure python and today I decided to take some inspiration from it and create a program for

See More
Reply
1
4
Image Description
Image Description

Sanjay K.

Semiconductor Hiring... • 1y

Hello All, I hope you are doing well. I am in recruitment field since long and I want to add value to this industries. I found that many of Candidates does not have proper resume and details on resume. I created one app that help users to create t

See More
5 Replies
2
9

Sanskar

Keen Learner and Exp... • 2d

Day 13 of learning data science as a beginner. Topic: data cleaning and preprocessing In most of the real world applications we rarely get almost perfect data most of the time we get a raw data dump which needs to be cleaned and preprocessed before

See More
Reply
1
Image Description
Image Description

Nani bethapudi

Let's create somethi... • 4m

hey! is anybody there here to manage social media pages. I want a person who can manage and grow my Instagram page, message me for details.

2 Replies
3
Image Description
Image Description

Shuvodip Ray

Never compromise wit... • 1y

Can you believe that I created this whole song using AI ???

5 Replies
6

Sanskar

Keen Learner and Exp... • 5d

Day 11 of learning Data science as a beginner Topic: creating data structure In my previous post I discussed about the difference between panda's series and data frames we typically use data frames more often as compared to series There are a lot

See More
Reply
2
Image Description
Image Description

Shuvodip Ray

 • 

Twitter • 5m

I created a Chess Game using AI. So , is there anyone who can beat AI in Chess..... ? I ended up with a Draw

3 Replies

Download the medial app to read full posts, comements and news.