Featured Post

SQL Interview Success: Unlocking the Top 5 Frequently Asked Queries

Image
 Here are the five top commonly asked SQL queries in the interviews. These you can expect in Data Analyst, or, Data Engineer interviews. Top SQL Queries for Interviews 01. Joins The commonly asked question pertains to providing two tables, determining the number of rows that will return on various join types, and the resultant. Table1 -------- id ---- 1 1 2 3 Table2 -------- id ---- 1 3 1 NULL Output ------- Inner join --------------- 5 rows will return The result will be: =============== 1  1 1   1 1   1 1    1 3    3 02. Substring and Concat Here, we need to write an SQL query to make the upper case of the first letter and the small case of the remaining letter. Table1 ------ ename ===== raJu venKat kRIshna Solution: ========== SELECT CONCAT(UPPER(SUBSTRING(name, 1, 1)), LOWER(SUBSTRING(name, 2))) AS capitalized_name FROM Table1; 03. Case statement SQL Query ========= SELECT Code1, Code2,      CASE         WHEN Code1 = 'A' AND Code2 = 'AA' THEN "A" | "A

Data science: Simple Project to Practice

I want to share with you how to use Python for your Data science or analytics Projects. Many programmers struggle to learn Data science because they do not know where to start. You can get hands-on if you start with a mini-project.

I have used Ubuntu Operating System for this project. You Need dual skills; Learning and Apply knowledge to become a data scientist. In Data science you need to learn and apply your knowledge.
 Data science: Simple Project to Practice

After engineering, you can go for M Tech Degree. 

You can become a real engineer if you apply engineering principles. So Data science also the same.

Data Visualization in Python is my simple project

Importance of Data

Data is a precious resource in resolving Machine Learning and Data Science Problems. 

Define first what is your problem.
  1. Collect Data
  2.  Wrangle the Data and Clean it.
  3. Visualize the Patterns
In the olden days, you might be studied a subject called Statistical Analysis. 

In this subject, you need to study the actual problem and collect the data in a notebook. 

Let us say when there were no computers in the olden days, people use paper and notebooks to collect and analyze data.

After that, they use pencil and graph paper and draw the charts based on selected data. 

It is time consuming and laborious process. Finally based on the data visualization people correct the process.

The same concept you can see in current data science projects.

How to Write a Script in Python

Related Posts

Make sure These Steps Completed

  1. Install Ubuntu on a Virtual Machine
  2.  Install Python 3.7X
  3. Install Anaconda Python - Which contains all the packages that you need for Data science projects.
'ls' Command gives the Script I created for this Project ls command you can use all the scripts

How to View Python Script using less command

less command to check the code

5 Key Points to Remember

  1. Import command you can use to import packages. 
  2. matplotlib is a package. This you need to draw a plot.
  3. Numpy is required to use all mathematical and scientific calculations. So I imported Numpy.
  4. The 'as' command is an alias. So that you can save a lot of coding time.
  5. I have drawn two plots. One is uniform and the other one in normal
Why I used if__name__=="__main__":

The real meaning is that the script is running under the main(). 

Also the module mypython.py, you can run as Standalone or you can call this module using import command from another script. 

In Python, you need to create modules using the .py extension. 

Some people say as scripts and other people say as Modules. 

All Python documents and Standard textbooks using the word Python module. So you also can use it.

You May Also Like: Story of  Python name and main

How to Execute mypython.py in Python Console

 $python mypython.py

Two Plots I have Drawn: Normal and Uniform Distribution

1). Normal Distribution


  normal distribution 

2). Uniform Distribution

uniform distribution

Summary

Try today as this is a simple project. In realtime, a data analyst role is to deal with data and charts. I am sure you can begin your data analyst career with this project.

Comments

Post a Comment

Thanks for your message. We will get back you.

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

Explained Ideal Structure of Python Class

How to Check Kafka Available Brokers