Back

Sanskar

Keen Learner and Exp... • 1d

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
2

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
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
Image Description
Image Description

Nani bethapudi

Let's create somethi... • 3m

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
Image Description
Image Description

Shuvodip Ray

 • 

Twitter • 4m

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
Image Description
Image Description

Chaitanya Sai

Brainstorming ideas • 3m

Created a frontend for my idea using Bolt. Step 1 is done

2 Replies
10
Image Description
Image Description

SHIV DIXIT

CHAIRMAN - BITEX IND... • 1y

Professional Business Concepts , Strategies , Research and Management Books For Entrepreneurs Download Now 1=} “ Oxford Business dictionary with 7000+ Business Concepts ” Pages — 320 Price — 1K Download link — https://drive.google.com/file/d/1

See More
23 Replies
94
46

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