lOMoARcPSD|37122545
Dev lab1 - notes
data visualization (Anna University)
Scan to open on Studocu
Studocu is not sponsored or endorsed by any college or university
Downloaded by Anitha Rani (kanitharani1310@gmail.com)
lOMoARcPSD|37122545
EX.NO: 1 To install data analysis and visualization tools like R, Python, Tableau Public,
DATE: or Power BI.
AIM
To install data analysis and visualization tools like R, Python, Tableau Public, or Power BI.
PROCEDURE
1. R:
- Download R:
Visit the official R website (https://cran.r-project.org/) and download the installer
for your operating system (Windows, macOS, or Linux).
- Install R by following the instructions provided in the installer.
2. Python:
- Download Python:
Visit the official Python website (https://www.python.org/downloads/) and
download the Python installer for your OS (Windows, macOS, or Linux).
- Install Python by running the installer and making sure to check the option to add Python
to your system's PATH during installation.
(i) INSTALL NUMPY WITH PIP
NumPy (Numerical Python) is an open-source core Python library for scientific computations. It is a
general-purpose array and matrices processing package.
pip install numpy
(ii) INSTALL JUPYTERLAB
Install Jupyter Lab with pip:
pip install jupyterlab
Once installed, launch Jupyter Lab with:
jupyter-lab
Downloaded by Anitha Rani (kanitharani1310@gmail.com)
lOMoARcPSD|37122545
(iii) JUPYTER NOTEBOOK
Install the classic Jupyter Notebook with:
pip install notebook
To run the notebook:
jupyter noteboo
(iv) INSTALL SCIPY
Scipy is a python library that is useful in solving many mathematical equations and algorithms. It is
designed on the top of Numpy library. SCIPY means scientific python.
pip install scipy
(v) INSTALL PANDAS
pandas is a Python package that provides fast, flexible, and expressive data structures designed to
make working with "relational" or "labeled" data botheasy and intuitive.
pip install pandas
(vi) INSTALL MATPLOTLIB
Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in
Python. working with "relational" or "labeled" data botheasy and intuitive.
pip install matplotlib
3. Tableau Public:
- Tableau Public
It is a web-based tool, so there's no installation required. Simply visit the Tableau
Public website (https://public.tableau.com/s/gallery) and create an account to
start using it.
4. Power BI:
- Download Power BI Desktop:
Go to the official Power BI website (https://powerbi.microsoft.com/en-
us/desktop/) and download Power BI Desktop.
- Install Power BI Desktop by running the installer.
Downloaded by Anitha Rani (kanitharani1310@gmail.com)
lOMoARcPSD|37122545
PROGRAM:1
import numpy as np
import pandas as pd
hafeez=['Hafeez',19]
aslam=['Aslam',21]
kareem=['Kareem',18]
dataframe=pd.DataFrame([hafeez,aslam,kareem],columns=['Name','Age'])
print(dataframe)
OUTPUT 1:
PROGRAM:2
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
data=pd.read_csv("CountryData.csv")
plt.hist(data)
plt.xlabel("code")
plt.ylabel("Total_personal_income")
plt.show()
CREATE A CSV FILE IN EXCEL:
First create a CSV file in excel with attributes ‘code’ and
‘Total_personal_income’.
Save the file with filename mentioned above “CountryData” with extension as
.csv file.
Downloaded by Anitha Rani (kanitharani1310@gmail.com)
lOMoARcPSD|37122545
OUTPUT 2:
Results
Thus, the program to install data analysis and visualization tools like R, Python, Tableau Public, or
Power BI, and their features were explored successfully.
Downloaded by Anitha Rani (kanitharani1310@gmail.com)