WorksheetsFinal Exam - DV
Total questions: 60
Worksheet time: 45mins
A ___ format is one of the most simple and common ways to store tabular data.
CSV
TXT
DB
CVS
There is a dedicated module for python to use in importing data to a program.
import csv
import csv as cs
import csv as csv
import cv2 as cv
To read as csv file in python we use this ___ function
csv.reader()
csv.read()
csv.readonly()
csv.readthis()
To encode in csv file you must use this function ___
csv.writer()
csv.writerow()
csv.writerthis()
csv.write()
This string can later be
used to write into CSV files using the ___ function.
writerow()
writer()
csv.write()
csv.writerow()
The objects of a ___ class can be used to read a
CSV file as a dictionary.
csv.DictReader()
DictReader()
csv.DictRead()
csv.DictReadRow()
The objects of ___ class can be used to write
to a CSV file from a Python dictionary.
csv.DictWriter()
DictWriter()
csv.DictWrite()
csv.DictWriterRow()
___ is an easy-to-use, low-level data visualization library
that is built on NumPy arrays. It consists of various plots like
scatter plot, line plot, histogram, etc.
matplotlib
pandas
seaborn
bokeh
___ is a Python library used for working with data sets.
It has functions for analyzing, cleaning, exploring, and manipulating data.
Pandas
Bokeh
Plotly
Seaborn
How to read csv file using pandas?
df = pd.read_csv('data.csv')
df = pd.csv_read('data.csv')
df = pd.reader_csv('data.csv')
df = pdread_csv('data.csv')
How to use matplotlib in your python program?
import matplotlib.pyplot as plt
import matplotlib as plt
import matplotlib.plot as plt
import matplotlib.pyplot = plt
___ is a high-level interface built on top of the Matplotlib. It
provides beautiful design styles and color palettes to make
more attractive graphs.
Seaborn
Plotlty
Bokeh
Pandas
How to display a line chart using seaborn?
import seaborn as sns
sns.lineplot(x,y,data)
import seaborn as sns
sns.line(x,y,data)
import seaborn as sns
sns.linechart(x,y,data)
import seaborn as sns
sns.linegraph(x,y,data)
How to display scatter chart in seaborn?
import seaborn as sns
sns.scatterplot(x,y,data)
import seaborn as sns
sns.scatter(x,y,data)
import seaborn as sns
sns.scatterchart(x,y,data)
import seaborn as sns
sns.scattergraph(x,y,data)
How to display bar graph using seaborn?
import seaborn as sns
sns.barplot(x,y,data)
import seaborn as sns
sns.bar(x,y,data)
import seaborn as sns
sns.bargraph(x,y,data)
import seaborn as sns
sns.barchart(x,y,data)
The ___ renders its
plots using HTML and JavaScript that uses modern web
browsers for presenting elegant, concise construction of novel
graphics with high-level interactivity.
Bokeh
Plotly
Ploty
Boke
How to display scatter graph using bokeh?
graph.scatter(data[x], data[y], color)
graph.scatterplot(data[x], data[y], color)
graph.scatterchart(data[x], data[y], color)
graph.scattergraph(data[x], data[y], color)
How to display line graph using bokeh?
df = data[y].value_counts()
graph.line(df, data[x])
df = data[y].value_counts()
graph.lineplot(df, data[x])
df = data[y].value_counts()
graph.linechart(df, data[x])
df = data[y].value_counts()
graph.linegraph(df, data[x])
___ has hover tool capabilities that allow us to detect any
outliers or anomalies in numerous data points.
Plotly
Bokeh
Pandas
Seaborn
How to display line graph in plotly?
fig = px.line(data,y,color)
fig = px.line(data,x,y,color)
fig = px.lineplot(data,y,color)
fig = px.linechart(data,y,color)
___ charts are one of the easiest charts to interpret, enabling the person
viewing the chart an easy way to compare categorical data quickly.
BAR
LINE
SCATTER
PIE
A ___ chart is the most useful way to capture how a numerical variable
changes over time. This is helpful to identify trends in numeric values.
LINE
BAR
PIE
SCATTER
A ___ chart is most commonly used to show the proportions of a whole.
It’s like visualizing fractions when you were in high school.
PIE
BAR
SCATTER
LINE
A ___ plot/chart is commonly used to visualize the relationship between
two variables.
SCATTER
BAR
LINE
PIE
A ___ chart is a special chart that helps illustrate how positive and
negative values can contribute to a total.
WATERFALL
SCATTER
BAR + LINE
PIE
It describe the main content of a chart / plot to be visualized. this is a very important chart element.
Chart Title
Legend
Data Labels
Chart Notes
It display the names and colors of each series of data. Also, text is taken from the data range.
Legend
Chart Title
Chart Notes
Data Labels
This are text elements that describe individual data points.
Data Labels
Legend
Chart Title
Chart Notes
This are typically have two axes that are used to measure and categorize data.
Chart Axes
Axis Title
Axis Scale
Number Format
This are word or phrase that describes an entire axis of a chart / plot. Generally define what kind of data is being shown on that axis.
Axis Title
Chart Axes
Number Format
Axis Scale
The scale of an axis is the units into which the axis is divided.
Axis Scale
Axis Title
Number Format
Chart Axes
A ___ is a powerful tool to calculate, summarize, and analyze data
that lets you see comparisons, patterns, and trends in your data.
Pivot Table
Analyze Data
MS Excel
Pivot Data
These are the different PivotTable source, except:
External Data Source
Model Data
PowerBI
CSV
Selected fields are added to their default areas: non-numeric fields are added to ___, date and time hierarchies are added to ___, and numeric fields are added to Values.
Rows, Columns
X, Y
Title, Label
Title, Legend
Selected fields are added to their default areas: non-numeric fields are added to ___, date and time hierarchies are added to ___, and numeric fields are added to Values.
Rows, Columns
X, Y
Title, Label
Title, Legend
There are two option in Refreshing PivotTable to avoid data loose and update the current worksheet. except:
Refresh All
Refresh Worksheet
Change Data Source
None of these
You can choose any functions in Summarizing value field by. Except:
Sum
Count
Product
Quotient
Use ___ if you want to create a PivotTable from multiple tables.
Model Data
PowerBI
CSV
External Data Source
These are the examples of External Data Source. Except:
From MS Access
From Web
From Text
From MySQL
___ in Excel empowers you to understand your data through
natural language queries that allow you to ask questions about your data
without having to write complicated formulas.
Analyze Data
PivotTable
PowerBI
Chart Axes
A ___ chart is a representation of values as slices of a circle with
different colors.
Pie
Bar
Line
Boxplot
A ___ chart represents data in rectangular bars with length of the proportional to the value of the variable.
Bar
Pie
Boxplot
Histogram
___ is a vector containing the numeric values used in the pie chart.
x
data
radius
main
___ are a measure of how well distributed is the data in a
data set.
Boxplots
Bar
Pie
Line
This graph represents the minimum, maximum, median, first
quartile and third quartile in the data set.
Boxplot
Bar
Pie
Line
___ is similar to bar chat but the difference is it groups the
values into continuous ranges.
Histogram
Boxplots
Bar
Line
A ___ represents the frequencies of values of a variable
bucketed into ranges.
Histogram
Boxplots
Bar
Pie
A ___ chart is a graph that connects a series of points by
drawing segments between them.
Line
Bar
Boxplots
Histogram
___ show many points plotted in the Cartesian plane.
Each point represents the values of two variables.
Scatterplots
Line
Boxplots
Histogram
Hold elements of different classes
Vector
List
Arrays
Matrices
It contain different types of elements
List
Vector
Matrices
Arrays
These are two dimensional rectangular data set
Matrices
Arrays
Vector
Data Frames
can be of any number of dimensions
Arrays
List
Vector
Matrices
These are tabular data objects
Data Frames
Factors
Vector
List
A ___ is a table or a two-dimensional array-like structure in
which each column contains values of one variable and each row
contains one set of values from each column.
Data Frame
Array
Matrices
Vector
How to read csv file in R?
data <- read.csv(file.csv)
data <- read_csv(file.csv)
data <- readcsv(file.csv)
data <- csv.read(file.csv)
What package is need to use XML in R?
install.packages('XML')
install.packages('XTML')
install.packages('READXML')
install.packages('xmlreader')
How to read XML in R?
result <- xmlParse(file.xml)
result <- xmlparse(file.xml)
result <- xml.Parse(file.xml)
result <- xml_Parse(file.xml)
What package will use to read JSON file in R?
install.packages('rjson')
install.packages('json')
install.packages('JSON')
install.packages('RJSON')
How to read JSON file in R?
result <- fromJSON(file='input.json')
result <- from.JSON(file='input.json')
result <- from_JSON(file='input.json')
result <- fromJSON('input.json')
