COMP41680 - Sample API Assignment¶
In [5]:
import os
import urllib.request
import csv
import pandas as pd
Task 1: Identify one or more suitable web APIs¶
API Chosen:
A single API that was chosen for this assignment was that provided by www.worldweatheronline.com
Specifically, the historic weather data API - http://developer.worldweatheronline.com/api/docs/historical-weather-api.aspx
The API is no longer freely available but they give out a free 60 day trial upon signing up, this entitles the user to 500 calls to the API per day.
The API key I received which works here is fbaf429501ff4c7f92b8463217d103
In [3]:
api_key = "fbaf429501ff4c7f92b8463217d103"
Task 2: Collect data your chosen API(s)¶
Collecting Raw Data - Functions needed:
The following 3 functions were written to allow multiple calls of the API as only limited data is available per call.
These function are commented throughout and are called below:
In [4]:
#create a file with set headings - 2 diff types of data to store
def create_file (file_loc, headings):
with open(file_loc, "w",newline='') as write_file: #as in get_and_write_data function
f = csv.writer(write_file)
f.writerow(headings)
write_file.close()
#function to call the API, retreive the raw csv data, and write to a file
def get_and_write_data(link, file_loc):
response = urllib.request.urlopen(link)
html = response.read().decode()
with open(file_loc, "a",newline='') as write_file: #open the file / create it, newline ='' to prevent blank lines being written
f = csv.writer(write_file)
lines = html.strip().split("\n")
for l in lines:
if l[0] =="#": # prevent it from writing the comments in the return of each API call
continue
elif l[0:10] in ["Not Availa", "There is n"]: #prevent it from writing lines where no data is present (i.e. returns saying - "Not Available" or "There is no weather data available for the date provided. Past data is available from 1 July, 2008 onwards only.")
continue
else: #if doesn't have those it is data and so should be written
l = l.split(",") #it comes in as a String, so convert to a list for later easier writing and manipulation
f.writerow(l)
#print ("Line Written")
write_file.close()
#return print ("Monthly Data Appending to Raw File - Completed")
# function to take in parameters set and then use this data to build a link
# to be passed into the get_and_write_data function
def get_raw_data(file_loc, api_key, location, year, month): #month needs to be a string to avoid invalid token errors for ints as the API needs a leading 0 for single digit months
while year <=2016: #iterate for all years available in api, namely July 2008 to date
if month == "02": #need to change end date in the call to the API as it doesn't return full values if the date .
Analyzing Air Quality Measurements in Macedonia with Apache DrillMarjan Sterjev
The article provides an example for JSON data analysis with Apache Drill. The "toy" model is based on the publicly available air quality measurement data.
C++ Please I am posting the fifth time and hoping to get th.pdfjaipur2
C++
"Please I am posting the fifth time and hoping to get this resolved. I want the year to
change from 2014 to 2015 but the days of the month change to 32 rather than 1/1/2015.
Also, Please I want personal information in the heading as well Name: Last: and Course
Name:"
Modify the Time class(attached) to be able to work with Date class. The Time object should
always
remain in a consistent state.
Modify the Date class(attached) to include a Time class object as a composition, a tick member
function that increments the time stored in a Date object by one second, and increaseADay
function to
increase day, month and year when it is proper. Please use CISP400V10A4.cpp that tests the tick
member function in a loop that prints the time in standard format during iteration of the loop to
illustrate that the tick member function works correctly. Be aware that we are testing the following
cases:
a) Incrementing into the next minute.
b) Incrementing into the next hour.
c) Incrementing into the next day (i.e., 11:59:59 PM to 12:00:00 AM).
d) Incrementing into the next month and next year.
Time class
The Time class has three private integer data members, hour (0 - 23 (24-hour clock format)),
minute (0
59), and second (0 59).
It also has Time, setTime, setHour, setMinute, setSecond, getHour(), getMinute,
getSecond,~Time,
printUniversal, and printStandard public functions.
1. The Time function is a default constructor. It takes three integers and they all have 0 as default
values. It also displays "Time object constructor is called." message and calls
printStandard
and printUniversal functions.
2. The setTime function takes three integers but does not return any value. It initializes the
private data members (hour, minute and second) data.
3. The setHour function takes one integer but doesnt return anything. It validates and stores the
integer to the hour private data member.
4. The setMinute function takes one integer but doesnt return anything. It validates and stores
the integer to the minute private data member.
5. The setSecond function takes one integer but doesnt return anything. It validates and stores
the integer to the second private data member.
Page 3 of 11 CISP400V10A4
6. The getHour constant function returns one integer but doesnt take anything. It returns the
private data member hours data.
7. The getMinute constant function returns one integer but doesnt take anything. It returns the
private data member minutes data.
8. The getSecond constant function returns one integer but doesnt take anything. It returns the
private data member seconds data.
9. The Time destructor does not take anything. It displays "Time object destructor is
called."
message and calls printStandard and printUniversal functions.
10. The printUniversal constant function does not return or accept anything. It displays time in
universal-time format.
11. The printStandard constant function does not return or accept anything. It displays time in
standard-ti.
Please I am posting the fifth time and hoping to get this r.pdfankit11134
"Please I am posting the fifth time and hoping to get this resolved. I want the year to
change from 2014 to 2015 but the days of the month change to 32 rather than 1/1/2015.
Also, Please I want personal information in the heading as well Name: Last: and Course
Name:"
Modify the Time class(attached) to be able to work with Date class. The Time object should
always
remain in a consistent state.
Modify the Date class(attached) to include a Time class object as a composition, a tick member
function that increments the time stored in a Date object by one second, and increaseADay
function to
increase day, month and year when it is proper. Please use CISP400V10A4.cpp that tests the tick
member function in a loop that prints the time in standard format during iteration of the loop to
illustrate that the tick member function works correctly. Be aware that we are testing the following
cases:
a) Incrementing into the next minute.
b) Incrementing into the next hour.
c) Incrementing into the next day (i.e., 11:59:59 PM to 12:00:00 AM).
d) Incrementing into the next month and next year.
Time class
The Time class has three private integer data members, hour (0 - 23 (24-hour clock format)),
minute (0
59), and second (0 59).
It also has Time, setTime, setHour, setMinute, setSecond, getHour(), getMinute,
getSecond,~Time,
printUniversal, and printStandard public functions.
1. The Time function is a default constructor. It takes three integers and they all have 0 as default
values. It also displays "Time object constructor is called." message and calls
printStandard
and printUniversal functions.
2. The setTime function takes three integers but does not return any value. It initializes the
private data members (hour, minute and second) data.
3. The setHour function takes one integer but doesnt return anything. It validates and stores the
integer to the hour private data member.
4. The setMinute function takes one integer but doesnt return anything. It validates and stores
the integer to the minute private data member.
5. The setSecond function takes one integer but doesnt return anything. It validates and stores
the integer to the second private data member.
Page 3 of 11 CISP400V10A4
6. The getHour constant function returns one integer but doesnt take anything. It returns the
private data member hours data.
7. The getMinute constant function returns one integer but doesnt take anything. It returns the
private data member minutes data.
8. The getSecond constant function returns one integer but doesnt take anything. It returns the
private data member seconds data.
9. The Time destructor does not take anything. It displays "Time object destructor is
called."
message and calls printStandard and printUniversal functions.
10. The printUniversal constant function does not return or accept anything. It displays time in
universal-time format.
11. The printStandard constant function does not return or accept anything. It displays time in
standard-time f.
FOR MORE CLASSES VISIT
tutorialoutletdotcom
CMIS 102 Hands-On Lab
Week 8
Overview
This hands-on lab allows you to follow and experiment with the critical steps of developing a program
including the program description, analysis, test plan, and implementation with C code. The example
provided uses sequential, repetition, selection statements, functions, strings and arrays.
Analyzing Air Quality Measurements in Macedonia with Apache DrillMarjan Sterjev
The article provides an example for JSON data analysis with Apache Drill. The "toy" model is based on the publicly available air quality measurement data.
C++ Please I am posting the fifth time and hoping to get th.pdfjaipur2
C++
"Please I am posting the fifth time and hoping to get this resolved. I want the year to
change from 2014 to 2015 but the days of the month change to 32 rather than 1/1/2015.
Also, Please I want personal information in the heading as well Name: Last: and Course
Name:"
Modify the Time class(attached) to be able to work with Date class. The Time object should
always
remain in a consistent state.
Modify the Date class(attached) to include a Time class object as a composition, a tick member
function that increments the time stored in a Date object by one second, and increaseADay
function to
increase day, month and year when it is proper. Please use CISP400V10A4.cpp that tests the tick
member function in a loop that prints the time in standard format during iteration of the loop to
illustrate that the tick member function works correctly. Be aware that we are testing the following
cases:
a) Incrementing into the next minute.
b) Incrementing into the next hour.
c) Incrementing into the next day (i.e., 11:59:59 PM to 12:00:00 AM).
d) Incrementing into the next month and next year.
Time class
The Time class has three private integer data members, hour (0 - 23 (24-hour clock format)),
minute (0
59), and second (0 59).
It also has Time, setTime, setHour, setMinute, setSecond, getHour(), getMinute,
getSecond,~Time,
printUniversal, and printStandard public functions.
1. The Time function is a default constructor. It takes three integers and they all have 0 as default
values. It also displays "Time object constructor is called." message and calls
printStandard
and printUniversal functions.
2. The setTime function takes three integers but does not return any value. It initializes the
private data members (hour, minute and second) data.
3. The setHour function takes one integer but doesnt return anything. It validates and stores the
integer to the hour private data member.
4. The setMinute function takes one integer but doesnt return anything. It validates and stores
the integer to the minute private data member.
5. The setSecond function takes one integer but doesnt return anything. It validates and stores
the integer to the second private data member.
Page 3 of 11 CISP400V10A4
6. The getHour constant function returns one integer but doesnt take anything. It returns the
private data member hours data.
7. The getMinute constant function returns one integer but doesnt take anything. It returns the
private data member minutes data.
8. The getSecond constant function returns one integer but doesnt take anything. It returns the
private data member seconds data.
9. The Time destructor does not take anything. It displays "Time object destructor is
called."
message and calls printStandard and printUniversal functions.
10. The printUniversal constant function does not return or accept anything. It displays time in
universal-time format.
11. The printStandard constant function does not return or accept anything. It displays time in
standard-ti.
Please I am posting the fifth time and hoping to get this r.pdfankit11134
"Please I am posting the fifth time and hoping to get this resolved. I want the year to
change from 2014 to 2015 but the days of the month change to 32 rather than 1/1/2015.
Also, Please I want personal information in the heading as well Name: Last: and Course
Name:"
Modify the Time class(attached) to be able to work with Date class. The Time object should
always
remain in a consistent state.
Modify the Date class(attached) to include a Time class object as a composition, a tick member
function that increments the time stored in a Date object by one second, and increaseADay
function to
increase day, month and year when it is proper. Please use CISP400V10A4.cpp that tests the tick
member function in a loop that prints the time in standard format during iteration of the loop to
illustrate that the tick member function works correctly. Be aware that we are testing the following
cases:
a) Incrementing into the next minute.
b) Incrementing into the next hour.
c) Incrementing into the next day (i.e., 11:59:59 PM to 12:00:00 AM).
d) Incrementing into the next month and next year.
Time class
The Time class has three private integer data members, hour (0 - 23 (24-hour clock format)),
minute (0
59), and second (0 59).
It also has Time, setTime, setHour, setMinute, setSecond, getHour(), getMinute,
getSecond,~Time,
printUniversal, and printStandard public functions.
1. The Time function is a default constructor. It takes three integers and they all have 0 as default
values. It also displays "Time object constructor is called." message and calls
printStandard
and printUniversal functions.
2. The setTime function takes three integers but does not return any value. It initializes the
private data members (hour, minute and second) data.
3. The setHour function takes one integer but doesnt return anything. It validates and stores the
integer to the hour private data member.
4. The setMinute function takes one integer but doesnt return anything. It validates and stores
the integer to the minute private data member.
5. The setSecond function takes one integer but doesnt return anything. It validates and stores
the integer to the second private data member.
Page 3 of 11 CISP400V10A4
6. The getHour constant function returns one integer but doesnt take anything. It returns the
private data member hours data.
7. The getMinute constant function returns one integer but doesnt take anything. It returns the
private data member minutes data.
8. The getSecond constant function returns one integer but doesnt take anything. It returns the
private data member seconds data.
9. The Time destructor does not take anything. It displays "Time object destructor is
called."
message and calls printStandard and printUniversal functions.
10. The printUniversal constant function does not return or accept anything. It displays time in
universal-time format.
11. The printStandard constant function does not return or accept anything. It displays time in
standard-time f.
FOR MORE CLASSES VISIT
tutorialoutletdotcom
CMIS 102 Hands-On Lab
Week 8
Overview
This hands-on lab allows you to follow and experiment with the critical steps of developing a program
including the program description, analysis, test plan, and implementation with C code. The example
provided uses sequential, repetition, selection statements, functions, strings and arrays.
in C++ Design a class named Employee The class should keep .pdfadithyaups
in C++ Design a class named Employee. The class should keep the following information in
member variables: Employee name Employee number Hire Date Write one or more constructors
and the appropriate accessor and mutator functions for the class. Next, write a class named
ProductionWorker that is derived from the Employee class. The ProductionWorker class should
have member variables to hold the following information: Shift (an integer) Hourly pay rate (a
double) The workday is divided into two shifts: day and night. The shift variable will hold an integer
value representing the shift that the employee works. The day shift is shift 1 and the night shift is
shift 2. Write one or more constructors and the appropriate accessor and mutator functions for the
class. Demonstrate the classes by writing a program that uses a ProductionWorker object." =>
MINIMUM for main(): To count as a Program, your Main must do: Please change so that data
entry is controlled by a loop that will allow the user to enter as many Employees and corollary
information list as they like. Ask them to enter C or c to continue or any other character to stop.
Have an option to print out all the employees and their data
I already completed the program, I just needed help on creating a loop that allows users to enter
as many employees and corollary information, and ask them to enter a c to continue or any other
character to stop.
Here is my code:
Any help is appreciated.
//Header file section
#include<iostream>
using namespace std;
//Employee class definition
class Employee
{
//instance variable declaration
private:
string eName;
string eNumber;
string hireDate;
public:
//constructor to initialize variables
Employee(string name,string number,string date)
{
eName=name;
eNumber=number;
hireDate=date;
}
//getter methods to return eName,eNumber and hireDate
string getEName()
{
return eName;
}
string getENumber()
{
return eNumber;
}
string getHireDate()
{
return hireDate;
}
//setter methods to set eName,eNumber and hireDate
void setEName(string name)
{
eName=name;
}
void setENumber(string number)
{
eNumber=number;
}
void setHireDate(string date)
{
hireDate=date;
}
};
//ProductionWorker derived from Employee class
class ProductionWorker:public Employee
{
//instance variable declaration
private:
int shift;
double hourlyPayRate;
double hoursWorked;
public:
//constructor to initialize variables
//passing varlues into base class
ProductionWorker(string name,string number,string date,int s,double hRate,double
hWorked):Employee(name,number,date)
{
shift=s;
hourlyPayRate=hRate;
hoursWorked=hWorked;
}
//getter methods to return shift,hourlyPayRate and hoursWorked
int getShift()
{
return shift;
}
double gethourlyPayRate()
{
return hourlyPayRate;
}
double getHoursWorked()
{
return hoursWorked;
}
//setter methods to set shift,hourlyPayRate and hoursWorked
void setShift(int s)
{
shift=s;
}
void sethourlyPayRate(double hRate)
{
hourlyPayRate=hRate;
}
void setHoursWorked(double hWorked)
{
hoursWorked=h.
Weather data meets ibm cloud. part 3 transformation and aggregation of weat...Einar Karlsen
This IBM Developer article shows how to extract, transform and load weather data stored by IBM Cloud Object Storage using IBM SQL Query, pandas, Apache Spark, IBM Watson Studio and Jupyter notebooks for Python.
This will be a demonstration-based working session on how to leverage financial data via Quandl from various tools including Quantopian, R and Python. The talk will cover basic and advanced data access methods and also present an overview of the free and commercial data available on Quandl.com.
This presentation was part of QuantCon 2015 hosted by Quantopian. Visit us at: www.quantopian.com.
Web pages can get very complex and slow. In this talk, I share how we solve some of these problems at LinkedIn by leveraging composition and streaming in the Play Framework. This was my keynote for Ping Conference 2014 ( http://www.ping-conf.com/ ): the video is on ustream ( http://www.ustream.tv/recorded/42801129 ) and the sample code is on github ( https://github.com/brikis98/ping-play ).
I have this python code and i am trying to Build a multivari.pdfsukhvir71
I have this python code and i am trying to Build a multivariate recurrent neural network (RNN-
LSTM) to **predict the weekly sales** of a retail store based on other features: but i am running
into problems, the dataset can be found in the link in the code
##Import Statements
from datetime import datetime, timedelta
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import tensorflow as tf
##Bringing in our dataset
url= 'https://raw.githubusercontent.com/BeeDrHU/Introduction-to-Python-CSPC-323-
/main/sales_forecast.csv'
data = pd.read_csv(url, sep=',')
data.head(200)
##Filtering and Cleaning
data= data[['Store', 'Date', 'Temperature', 'Fuel_Price', 'CPI' , 'Unemployment', 'Weekly_Sales',
'IsHoliday_y']]
data['Date'] = pd.to_datetime(data['Date'], format='%d/%m/%Y')
data = data.set_index('Date')
data = data.sort_index()
data.head()
##Checklist and Quality Assurance
data.isnull()
print(f'Number of rows with missing values: {data.isnull().any(axis=1).mean()}')
data.info()
# replace missing values in all columns with respective column means
data.fillna(data.mean(), inplace=True)
print(f'Number of rows with missing values: {data.isnull().any(axis=1).mean()}')
data.info()
data.head()
data.columns
data.index
max_sales = data['Weekly_Sales'].max()
print("Maximum Sales amount: ", max_sales)
##Subsetting variable to predict
df= data['Weekly_Sales']
df.plot()
##Selecting 12 months of data for training and testing
start_train = '2010/02/05'
end_train = '2010/07/30'
end_test = '2010/12/31'
##Train and Test Split
msk = (data.index >= start_train) & (data.index <= end_test)
df_train = df.loc[(data.index >= start_train) | (data.index <= end_train)]
df_test = df.loc[msk]
df_train.plot()
df_test.plot()
##I dont know if my graph should look like the result it gives, I believe my x-axis tick labels
are not correct dates according to my dataset
##Normalizing our data
uni_data= df.values.astype(float)
df_train= int(len(df_train))
uni_train_mean= uni_data[:df_train].mean()
uni_train_std= uni_data[:df_train].std()
uni_data= (uni_data-uni_train_mean)/uni_train_std
Maximum Sales amount: 693099.36 AxesSubplot: xlabel='Date'.
Weather data meets ibm cloud. part 1 ingestion and processing of weather da...Einar Karlsen
This recipe - co-authored with Julia Wiegel and Rene Meyer - shows how to ingest and process weather data using the Weather Company Data Service (API), IBM Cloud Functions (based on Apache OpenWhisk) and IBM Event Streams (based on Apache Kafka). It was originally published on IBM Developer.
This is a brief introduction to how R can be useful in the manufacturing sector to calculate the frequency of faults and then developing the model so that preventive maintenance can be done
Aspect-based sentiment analysis is a text analysis technique that breaks down text into aspects (attributes or components of a product or service), and then scores the sentiment level (positive, negative or neutral) of each aspect. In this talk we'll walk through a production pipeline for training large Aspect Based Sentiment Analysis model in python with the Intel NLP Architect package based on the following open sourced code https://github.com/microsoft/nlp-recipes/tree/master/examples/sentiment_analysis/absa
CompetencyIn this project, you will demonstrate your mastery of .docxpickersgillkayne
Competency
In this project, you will demonstrate your mastery of the following competencies:
Craft a communication strategy for internal and external audiences
Leverage internal and external intelligence to inform decision making
Develop an adaptable leadership mindset and skill set
Scenario
The vice president of leadership and learning has shared your toolkit with the chief human resources officer (CHRO). The CHRO is impressed with the toolkit. She plans to roll it out to all people leaders in the organization—supervisors and above—and asks you to create a communication strategy for the rollout.
The CHRO shared her vision with you, which consisted of the following key points she wants you to take into consideration when crafting the communication strategy:
Inform your audience of the
who, what, when, where, why,
and
how.
Ensure the new leadership development strategy moves from a lofty vision with idealistic targets to reality, with direct impact on and with our front-line supervisors, our “boots on the ground,” and managers up through the organization.
Be clear when explaining WIIFM— “What’s in It for Me.”
Define the timetable for the rollout and implementation.
Ensure that the strategy defines what success looks like, with clear metrics and deliverables.
Directions
Construct an effective
communication strategy
that addresses all the deliverables the CHRO wants to achieve. The communication strategy will do the following:
State the business problem that will be addressed in rolling out the new adaptive leadership toolkit.
Explain why these specific leadership skills and behaviors are being targeted.
Provide a summary analysis of the employee satisfaction survey, identifying strengths and weaknesses.
Introduce the new adaptive leadership toolkit, including how it will be used and the value it provides.
Utilize your own personal development plan as an example for others.
Provide a strong conclusion that supports your thesis statement and goes beyond merely restating key points.
Ensure all key points are addressed in a logical order by using the Five
W
s and One
H
as an outline when developing the specific detail for each step of the communication strategy.
Why:
Why was the adaptive leadership toolkit developed?
Who:
Define who the audience, stakeholder(s), and owners are.
What:
What is the key message?
What is the organizational goal?
What is the personal goal?
What types of communication media will be used?
When:
What is the timeline for program implementation and achievement of program deliverables?
Where:
Where is the adaptive leadership toolkit located? Where are supporting documents, such as the FAQ?
How:
How will we measure success?
How will we track progress? How will we define important milestones?
How will we communicate updates?
How can employees provide feedback on any roadblocks, issues, or ideas for improvement?
What to Submit
To complete this project, you must su.
CompetencyExplore advocacy opportunities in the community..docxpickersgillkayne
Competency
Explore advocacy opportunities in the community.
Scenario
Victor, a new parent to the program and the community, arrives late to pick up his children for the fourth time in two weeks. As the director of All Kids Childcare and Education, you are proud of the compassion, respect, and patience Master Teacher Veronica has offered Victor. You know that Victor and his family have relocated after a family hardship and they are struggling to make ends meet. However, you become concerned about professional boundaries after observing the following interaction.
Veronica chats with Victor as they get the children ready to go home, not mentioning Victor's late arrival. She asks Victor if he has found beds for all of his family members to sleep in. Victor says, "Not yet. I have been busy working two jobs. I was offered the opportunity to pick up a few extra hours at my second job, so I haven't had time for anything else."
"Oh," says Veronica. "I have a couple of extra beds at my house. Why don't I bring them over with all the bedding later?" Victor is excited and says, "Yes, thank you! Thanks also for the table, chairs, and dishes you brought last week."
As they part, Veronica says, "And, Victor, don't worry about being late to pick up your children. We are very happy to have them here."
Instructions
As the director, identify if this in an ethical situation. Then outline a coaching plan with Veronica. The coaching plan should be a written Word document or PowerPoint Presentation and include the following:
A coaching plan for approaching Veronica. Will you have a casual conversation, a sit-down meeting, or use another coaching method? Support the method you choose with examples, and best leadership and ethical practices using outside resources.
A coaching plan for supporting Veronica. Were there boundaries crossed in Veronica's interaction with Victor? Explain your perspective and how you will facilitate your interaction with Veronica. Describe your actions and interactions with Veronica. Include two suggestions for how you might have handled the situation differently using outside resources for ethical conduct in early childhood education.
Support for Veronica and Victor. Describe at least one follow-up action step needed from Veronica and from you. Include a rationale for each step. Offer at least three resources to support Veronica, with one resource that Veronica can use to support Victor. Information on how to locate and use the resources must be clear and detailed
.
More Related Content
Similar to COMP41680 - Sample API Assignment¶In [5] .docx
in C++ Design a class named Employee The class should keep .pdfadithyaups
in C++ Design a class named Employee. The class should keep the following information in
member variables: Employee name Employee number Hire Date Write one or more constructors
and the appropriate accessor and mutator functions for the class. Next, write a class named
ProductionWorker that is derived from the Employee class. The ProductionWorker class should
have member variables to hold the following information: Shift (an integer) Hourly pay rate (a
double) The workday is divided into two shifts: day and night. The shift variable will hold an integer
value representing the shift that the employee works. The day shift is shift 1 and the night shift is
shift 2. Write one or more constructors and the appropriate accessor and mutator functions for the
class. Demonstrate the classes by writing a program that uses a ProductionWorker object." =>
MINIMUM for main(): To count as a Program, your Main must do: Please change so that data
entry is controlled by a loop that will allow the user to enter as many Employees and corollary
information list as they like. Ask them to enter C or c to continue or any other character to stop.
Have an option to print out all the employees and their data
I already completed the program, I just needed help on creating a loop that allows users to enter
as many employees and corollary information, and ask them to enter a c to continue or any other
character to stop.
Here is my code:
Any help is appreciated.
//Header file section
#include<iostream>
using namespace std;
//Employee class definition
class Employee
{
//instance variable declaration
private:
string eName;
string eNumber;
string hireDate;
public:
//constructor to initialize variables
Employee(string name,string number,string date)
{
eName=name;
eNumber=number;
hireDate=date;
}
//getter methods to return eName,eNumber and hireDate
string getEName()
{
return eName;
}
string getENumber()
{
return eNumber;
}
string getHireDate()
{
return hireDate;
}
//setter methods to set eName,eNumber and hireDate
void setEName(string name)
{
eName=name;
}
void setENumber(string number)
{
eNumber=number;
}
void setHireDate(string date)
{
hireDate=date;
}
};
//ProductionWorker derived from Employee class
class ProductionWorker:public Employee
{
//instance variable declaration
private:
int shift;
double hourlyPayRate;
double hoursWorked;
public:
//constructor to initialize variables
//passing varlues into base class
ProductionWorker(string name,string number,string date,int s,double hRate,double
hWorked):Employee(name,number,date)
{
shift=s;
hourlyPayRate=hRate;
hoursWorked=hWorked;
}
//getter methods to return shift,hourlyPayRate and hoursWorked
int getShift()
{
return shift;
}
double gethourlyPayRate()
{
return hourlyPayRate;
}
double getHoursWorked()
{
return hoursWorked;
}
//setter methods to set shift,hourlyPayRate and hoursWorked
void setShift(int s)
{
shift=s;
}
void sethourlyPayRate(double hRate)
{
hourlyPayRate=hRate;
}
void setHoursWorked(double hWorked)
{
hoursWorked=h.
Weather data meets ibm cloud. part 3 transformation and aggregation of weat...Einar Karlsen
This IBM Developer article shows how to extract, transform and load weather data stored by IBM Cloud Object Storage using IBM SQL Query, pandas, Apache Spark, IBM Watson Studio and Jupyter notebooks for Python.
This will be a demonstration-based working session on how to leverage financial data via Quandl from various tools including Quantopian, R and Python. The talk will cover basic and advanced data access methods and also present an overview of the free and commercial data available on Quandl.com.
This presentation was part of QuantCon 2015 hosted by Quantopian. Visit us at: www.quantopian.com.
Web pages can get very complex and slow. In this talk, I share how we solve some of these problems at LinkedIn by leveraging composition and streaming in the Play Framework. This was my keynote for Ping Conference 2014 ( http://www.ping-conf.com/ ): the video is on ustream ( http://www.ustream.tv/recorded/42801129 ) and the sample code is on github ( https://github.com/brikis98/ping-play ).
I have this python code and i am trying to Build a multivari.pdfsukhvir71
I have this python code and i am trying to Build a multivariate recurrent neural network (RNN-
LSTM) to **predict the weekly sales** of a retail store based on other features: but i am running
into problems, the dataset can be found in the link in the code
##Import Statements
from datetime import datetime, timedelta
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import tensorflow as tf
##Bringing in our dataset
url= 'https://raw.githubusercontent.com/BeeDrHU/Introduction-to-Python-CSPC-323-
/main/sales_forecast.csv'
data = pd.read_csv(url, sep=',')
data.head(200)
##Filtering and Cleaning
data= data[['Store', 'Date', 'Temperature', 'Fuel_Price', 'CPI' , 'Unemployment', 'Weekly_Sales',
'IsHoliday_y']]
data['Date'] = pd.to_datetime(data['Date'], format='%d/%m/%Y')
data = data.set_index('Date')
data = data.sort_index()
data.head()
##Checklist and Quality Assurance
data.isnull()
print(f'Number of rows with missing values: {data.isnull().any(axis=1).mean()}')
data.info()
# replace missing values in all columns with respective column means
data.fillna(data.mean(), inplace=True)
print(f'Number of rows with missing values: {data.isnull().any(axis=1).mean()}')
data.info()
data.head()
data.columns
data.index
max_sales = data['Weekly_Sales'].max()
print("Maximum Sales amount: ", max_sales)
##Subsetting variable to predict
df= data['Weekly_Sales']
df.plot()
##Selecting 12 months of data for training and testing
start_train = '2010/02/05'
end_train = '2010/07/30'
end_test = '2010/12/31'
##Train and Test Split
msk = (data.index >= start_train) & (data.index <= end_test)
df_train = df.loc[(data.index >= start_train) | (data.index <= end_train)]
df_test = df.loc[msk]
df_train.plot()
df_test.plot()
##I dont know if my graph should look like the result it gives, I believe my x-axis tick labels
are not correct dates according to my dataset
##Normalizing our data
uni_data= df.values.astype(float)
df_train= int(len(df_train))
uni_train_mean= uni_data[:df_train].mean()
uni_train_std= uni_data[:df_train].std()
uni_data= (uni_data-uni_train_mean)/uni_train_std
Maximum Sales amount: 693099.36 AxesSubplot: xlabel='Date'.
Weather data meets ibm cloud. part 1 ingestion and processing of weather da...Einar Karlsen
This recipe - co-authored with Julia Wiegel and Rene Meyer - shows how to ingest and process weather data using the Weather Company Data Service (API), IBM Cloud Functions (based on Apache OpenWhisk) and IBM Event Streams (based on Apache Kafka). It was originally published on IBM Developer.
This is a brief introduction to how R can be useful in the manufacturing sector to calculate the frequency of faults and then developing the model so that preventive maintenance can be done
Aspect-based sentiment analysis is a text analysis technique that breaks down text into aspects (attributes or components of a product or service), and then scores the sentiment level (positive, negative or neutral) of each aspect. In this talk we'll walk through a production pipeline for training large Aspect Based Sentiment Analysis model in python with the Intel NLP Architect package based on the following open sourced code https://github.com/microsoft/nlp-recipes/tree/master/examples/sentiment_analysis/absa
CompetencyIn this project, you will demonstrate your mastery of .docxpickersgillkayne
Competency
In this project, you will demonstrate your mastery of the following competencies:
Craft a communication strategy for internal and external audiences
Leverage internal and external intelligence to inform decision making
Develop an adaptable leadership mindset and skill set
Scenario
The vice president of leadership and learning has shared your toolkit with the chief human resources officer (CHRO). The CHRO is impressed with the toolkit. She plans to roll it out to all people leaders in the organization—supervisors and above—and asks you to create a communication strategy for the rollout.
The CHRO shared her vision with you, which consisted of the following key points she wants you to take into consideration when crafting the communication strategy:
Inform your audience of the
who, what, when, where, why,
and
how.
Ensure the new leadership development strategy moves from a lofty vision with idealistic targets to reality, with direct impact on and with our front-line supervisors, our “boots on the ground,” and managers up through the organization.
Be clear when explaining WIIFM— “What’s in It for Me.”
Define the timetable for the rollout and implementation.
Ensure that the strategy defines what success looks like, with clear metrics and deliverables.
Directions
Construct an effective
communication strategy
that addresses all the deliverables the CHRO wants to achieve. The communication strategy will do the following:
State the business problem that will be addressed in rolling out the new adaptive leadership toolkit.
Explain why these specific leadership skills and behaviors are being targeted.
Provide a summary analysis of the employee satisfaction survey, identifying strengths and weaknesses.
Introduce the new adaptive leadership toolkit, including how it will be used and the value it provides.
Utilize your own personal development plan as an example for others.
Provide a strong conclusion that supports your thesis statement and goes beyond merely restating key points.
Ensure all key points are addressed in a logical order by using the Five
W
s and One
H
as an outline when developing the specific detail for each step of the communication strategy.
Why:
Why was the adaptive leadership toolkit developed?
Who:
Define who the audience, stakeholder(s), and owners are.
What:
What is the key message?
What is the organizational goal?
What is the personal goal?
What types of communication media will be used?
When:
What is the timeline for program implementation and achievement of program deliverables?
Where:
Where is the adaptive leadership toolkit located? Where are supporting documents, such as the FAQ?
How:
How will we measure success?
How will we track progress? How will we define important milestones?
How will we communicate updates?
How can employees provide feedback on any roadblocks, issues, or ideas for improvement?
What to Submit
To complete this project, you must su.
CompetencyExplore advocacy opportunities in the community..docxpickersgillkayne
Competency
Explore advocacy opportunities in the community.
Scenario
Victor, a new parent to the program and the community, arrives late to pick up his children for the fourth time in two weeks. As the director of All Kids Childcare and Education, you are proud of the compassion, respect, and patience Master Teacher Veronica has offered Victor. You know that Victor and his family have relocated after a family hardship and they are struggling to make ends meet. However, you become concerned about professional boundaries after observing the following interaction.
Veronica chats with Victor as they get the children ready to go home, not mentioning Victor's late arrival. She asks Victor if he has found beds for all of his family members to sleep in. Victor says, "Not yet. I have been busy working two jobs. I was offered the opportunity to pick up a few extra hours at my second job, so I haven't had time for anything else."
"Oh," says Veronica. "I have a couple of extra beds at my house. Why don't I bring them over with all the bedding later?" Victor is excited and says, "Yes, thank you! Thanks also for the table, chairs, and dishes you brought last week."
As they part, Veronica says, "And, Victor, don't worry about being late to pick up your children. We are very happy to have them here."
Instructions
As the director, identify if this in an ethical situation. Then outline a coaching plan with Veronica. The coaching plan should be a written Word document or PowerPoint Presentation and include the following:
A coaching plan for approaching Veronica. Will you have a casual conversation, a sit-down meeting, or use another coaching method? Support the method you choose with examples, and best leadership and ethical practices using outside resources.
A coaching plan for supporting Veronica. Were there boundaries crossed in Veronica's interaction with Victor? Explain your perspective and how you will facilitate your interaction with Veronica. Describe your actions and interactions with Veronica. Include two suggestions for how you might have handled the situation differently using outside resources for ethical conduct in early childhood education.
Support for Veronica and Victor. Describe at least one follow-up action step needed from Veronica and from you. Include a rationale for each step. Offer at least three resources to support Veronica, with one resource that Veronica can use to support Victor. Information on how to locate and use the resources must be clear and detailed
.
CompetencyEvaluate the role and impact of financial principl.docxpickersgillkayne
Competency
Evaluate the role and impact of financial principles on healthcare organizations.
Scenario
Metropolitan Memorial is seeking to expand its service offerings into underserved rural communities. The Board of Directors has expressed concerns given the emergence of new payment models, low reimbursement from Medicare and Medicaid, and uncertainty in terms of provider incentives offered through the Affordable Care Act. The Board of Directors has requested an executive summary outlining the organization’s financial viability given the challenges facing health organizations, particularly those operating in rural communities.
Instructions
The CEO has asked you to prepare an executive summary to present to the Board of Trustees, discussing the following information:
Identify the different types of healthcare payment models that could be utilized by Metropolitan Memorial.
Research the Triple AIM and discuss ways the organization can achieve the goals of the Triple AIM (improving the experience of care, improving the health of populations, and reducing per capital costs of health care ).
Discuss possible ways the payer mix may impact hospital revenue.
Explain how value-based healthcare delivery could be utilized to save money.
.
CompetencyEvaluate the impact of innovation on team success..docxpickersgillkayne
Competency
Evaluate the impact of innovation on team success.
Scenario
You are the CEO of Tech Log, a small startup technology company. You are beginning the expansion process and are wanting to hire a team. You recognize the team will need to have clear direction on the business mission, vision, and strategy. The strategy component that you think is most important to create and share with your team is your innovation strategy. Being in the technology industry, being innovative is critical to the organization’s success and longevity.
Instructions
You will write a plan that describes ways the company can be designed to be innovative. You will need to address structure, strategy, diversity and inclusion, communication, and collaboration. The following should be in your innovation plan/strategy:
Explanation of how the company will be designed and structured to be innovative.
Explanation of the leadership traits, skills, and styles that should be used to create an atmosphere that allows for innovation.
How innovation impacts organizational success.
Diversity and inclusion’s role in organizational innovation.
.
CompetencyEvaluate the role of identity, diverse segments, a.docxpickersgillkayne
Competency
Evaluate the role of identity, diverse segments, and cultural backgrounds within organizations.
Scenario Information
You have been hired as the Human Resources Director for a global organization that is headquartered in the United States. Your job is to evaluate and make recommendations in the area of diversity for your company. Each section will contain specific areas within diversity for you to focus on. You will be tasked with choosing from one of the diversity areas that are provided to you. Be sure to conduct research using the university library and other relevant sources.
ETHNICITY
Ethnicity
Instructions
There has been much talk about the interaction between your diversity area and the Millennial generation, and you have been asked by the leadership team to conduct research and findings to the board. You will need to conduct research and include the following questions addressed in your report:
Introduce your diversity area, and introduce Millennials.
Discuss similarities and differences between these two groups.
How does personal identity play a role with these two groups?
Discuss any proactive plans that you might use as a manager in the workplace.
Conclude your report.
.
CompetencyExamine leaderships role in executing successful change.docxpickersgillkayne
Competency
Examine leadership's role in executing successful change.
Instructions
Delta Pacific Case Study
As the change leader for Delta Pacific Company (DPC), you know certain elements need to be in place by leadership for a change to be successful. DPC wants to change the culture from the more traditional manufacturing environment to one of a contemporary consulting environment. Now it's time for you to help the leaders execute a successful change:
Determine how leadership impacts the organizational culture during this change
Examine elements that are critical to making this change sustainable
Assess the top mistakes leaders make and determine the best way to avoid those mistakes
As the change leader, it is your responsibility to help ensure a successful change in the shift of DPC's organizational culture. Part of this includes alerting leadership to how their own behavior impacts change and how change can be sustainable.Conduct academic research and create a plan to present to the CEO and board in which you complete the following successful change management plan:
Explanation of leadership behaviors that impact organizational change.
Description of critical factors that ensures this cultural shift will be sustainable.
Examination of the top mistakes leaders make during a change.
Explanation of your recommendations as to the best ways the leaders can avoid making those mistakes.
Remember that this is a proposal. Make sure to format your paper properly for your proposal. A proposal is a persuasive document, so make sure to use proper language and tone. Remember, you are the change leader, and you are writing to the CEO. So use a tone in your proposal that is specific to your audience (the CEO).
Include your APA-formatted reference page with at least two credible sources.A note about credible sources: Credible sources are reliable, accurate, and trustworthy. These sources are written by authors respected in their fields of study. You want to identify sources where the author of the article is listed if they've referenced other information. The sources should be cited so that you can check for the accuracy of and support what they have written.
.
CompetencyEvaluate psychological theories and their insights.docxpickersgillkayne
Competency
Evaluate psychological theories and their insights into the widely varying opinions and attitudes that are expressed through social media.
Instructions
We have been looking at different psychological theories and the way we can use them to better examine social media. For this assignment, you should choose yourself or another person (such as a celebrity or a politician). Spend some time looking through your/their social media accounts: Facebook, Twitter, Instagram, Pinterest, etc. Then write your analysis, being sure to cover these points:
A good introduction including who your subject is and a good overview of them and their social media use
Examples and discussion of schema/script theory in your subject
Examples and discussion of cultivation theory in your subject
Examples and discussion of agenda-setting theory in your subject
Examples and discussion of social learning in your subject
Examples and discussion of uses and gratifications theory in your subject
Conclusions
.
CompetencyEmploy contemporary economic principles that guide.docxpickersgillkayne
Competency
Employ contemporary economic principles that guide resource allocation decisions in health organizations.
Scenario
Upon reviewing the annual budget and fiscal standing of Metropolitan Memorial, the CFO has identified shortfalls that will impact the funding of its proposed expansion into rural communities. In order to secure adequate funding from the Board, the operational team must reduce current operating budget by a million dollars.
Instructions
The CFO requests that you draft a memo to the Board providing justification for the additional funding in light of the shortfall. You should review current literature to support your justification. Your memo should include the following information based on the literature:
Explain the possible impact of resource allocation within a rural communities .
Discuss the factors that may affect the quality of care by reducing healthcare resources to accommodate budgetary constraints.
Discuss a potential service line and five possible ways in which the service line may maximize resource allocation.
.
CompetencyDetermine how the environment and economies are in.docxpickersgillkayne
Competency
Determine how the environment and economies are interconnected.
Scenario
You are a member of a community planning committee. The committee is reminding local citizens about recently enacted environmental laws. You are responsible for developing an infographic to showcase one of these new laws. The infographic will be displayed at the next community meeting in the community center.
Instructions
The United States Environmental Protection Agency (EPA) website contains information concerning laws and regulations that impact the environment. Search this
EPA website
to choose one law to focus on.The infographic should contain:
A recently enacted environmental law (The law can be local or national, and focused on any part of an environment such as water, air, land, energy, wildlife, etc.)
Present the major players and the stakeholders (Who is involved and who is impacted by the new law?)
Examine the impact to the economy (Does the law help or hinder the economy and why? Do the benefits outweigh the costs?)
Identify the controversy surrounding the law (differences in opinion)
Your infographic should be clear and organized. References should be in APA format
.
CompetencyDescribe the atmosphere, biosphere, hydrosphere, g.docxpickersgillkayne
Competency
Describe the atmosphere, biosphere, hydrosphere, geosphere and how they interact.
Scenario
Each of us has directly or indirectly been impacted by a natural disaster or severe weather event. For this assignment you will be required to recall a personal, real-world experience about the power of one of the Earth’s four spheres that you have experienced in your lifetime, creating a mixed media PowerPoint presentation that brings this event to life. The goal is to illustrate the interconnectedness of the Earth’s four spheres to human health and safety, to the current state of our climate, and to the mitigation of such disasters in the future as the consequences of climate change continue to worsen.
Instructions
In a well-organized presentation using PowerPoint, you will construct a visual presentation that illustrates the power of a natural disaster/geologic event in history from the standpoint of a personal experience. Consider a time in your life when you have been impacted, either directly or indirectly, by a natural disaster or severe weather event. Your presentation should include the following elements as well as a robust discussion of each in the slides' speaker notes section:
Discuss background, history, and location of your chosen event/disaster. (Where did this event occur? How many people were impacted by this event?)
Specify measures taken to mitigate the event/disaster. (What was the response of the community/state/country to this event?)
Discuss how we might mitigate a similar event/disaster in the future. (How can we mitigate disasters to more fully protect human health and safety?)
Be sure to include images/maps/statistical information from your chosen event/disaster.
.
CompetencyDevelop examples of ethical and privacy concerns a.docxpickersgillkayne
Competency
Develop examples of ethical and privacy concerns associated with data supporting business intelligence efforts.
Instructions
You work for a tourism board at a top destination within the United States that among other tasks, sends information out to potential visitors, performs direct mailing campaigns, solicits newsletter sign ups, and helps drive economic growth by attracting visitors to the destination. The direct mailing team for your organization accomplishes this through email blasts, mailing flyers, and texting campaigns. The address list the organization has in place is seen as a strategic advantage, as it has extensive information about potential and repeat visitors, and has been compiled from various sources over the years.
The organization has recently developed a mobile application and hopes to leverage mobile devices and tablets to help make obtaining information easier for the visitors, as well as collecting more information on patterns of consumer behavior. Since the mobile application will have access to a great deal of personal information belonging to the users (email address, GPS data, phone number, etc.), it has been suggested this information be automatically uploaded to the direct mailing database, and signing them up for various promotional efforts and communications. It had also been suggested there may be an opportunity for the marketing department to partner with the local theme parks and attractions within the area, sharing the databases from each to form one large database to reach more users.
The idea has been presented to the organization's legal counsel for review, as the IT team is fairly certain the end user agreement for the mobile application states the collected information can be reused and sold as needed. The public relations team has taken a different position and feels there is potential for backlash in social media as well as other public outcries should the data be sold to or shared with other organizations, and questions whether the data should even be stored since there are additional pieces of data being collected that have no purposeful use for the tourism board. They have asked for your input on the matter.
The questions they are presenting you with include:
What are the general practices surrounding data collection?
How can privacy violations occur?
Are there any risks, issues, or problems associated with collecting and storing data that isn’t needed now, in the event it may be needed in the future? What information do other organizations collect?
The end user agreement says we CAN collect, reuse, and sell data as needed, but does that mean we should? Is there a level of ethical data collection and storage that we should be considering?
The task:
In addition to the presentation, prepare a memo to the head of the public relations department outlining any possible risks associated with collecting and using the data in the manner described. Your report should include general.
CompetencyAssess the causes and consequences of historical e.docxpickersgillkayne
Competency
Assess the causes and consequences of historical events on the U.S. healthcare system.
Scenario
You are the Director of Education in your healthcare organization. Your organization is a teaching hospital, and you are responsible for presenting information to new employees and volunteers during their orientation, many of whom are recent graduates of healthcare programs. This presentation is used to give them a better understanding of why the healthcare system is the way it is today, including a summary of historical events that have shaped the U.S. healthcare system, so that they understand the causes and consequences of these events.
Instructions
Create a timeline for the historical events that have shaped the U.S. healthcare system in the past century. Once the timeline has been developed, create a PowerPoint presentation using the record audio feature to add Voiceover narration.
The timeline information should include:
A minimum of 20 events with a minimum of a three sentence description for each event.
Descriptions should list at least one cause as to why the event took place and at least one consequence it had on the U.S. healthcare delivery system.
The voiceover PowerPoint presentation should:
Include the timeline information for the historical events that have shaped the U.S. healthcare system in the past century.
Describe the events in detail included in the timeline to your audience of new employees and volunteers who are graduates of healthcare programs (e.g., nurses, medical assisting, health information management, medical school residency, etc.).
Explain the cause(s) and consequences of each of the events outlined in your timeline.
Have a minimum of 20 slides (not including title and APA reference slides).
Be at least 10 minutes long.
Be visually appealing and engaging to the suggested audience.
Resources
For writing assistance, please visit the
Rasmussen College Writing Guide
.
APA formatting for the reference list, and proper grammar, punctuation, and form are required. APA help is available
here
.
Click this
link
for help on creating a PowerPoint presentation.
Click this
link
for help on creating an audio recording for a PowerPoint presentation.
Grading Rubric
1.Timeline includes a minimum of 20 events
And
Each event has comprehensive descriptions of causes and effects that are at least three sentences.
2. Narration of PowerPoint comprehensively describes the timeline to the audience of new employees and volunteers who are graduates of healthcare focused programs.
3. Narration includes clear and thorough descriptions of causes and effects of all timeline events.
4. Slides contain complex and interactive elements of effective design: graphics, fonts, col
.
CompetencyApply data analytic methodologies to diverse popul.docxpickersgillkayne
Competency
Apply data analytic methodologies to diverse populations to address population health needs.
Scenario
You have assessed your local population health needs and identified data sources and data sets that are needed to help providers make immediate gains in patient outcomes. Your health systems Board of Directors is requesting that you develop a high-level population health management program dashboard.For this assessment, you need to assess local population health needs and identify data sources and data sets that are needed to help providers make immediate gains in patient outcomes. It is a major undertaking to plan, design, and implement a robust PHM. Therefore, your health systems Board of Directors is requesting that you develop 1-2 page high-level population health management program dashboard. In this dashboard, list the health needs based on the community needs assessment and the critical data sources and data sets needed for the population health management program your health system is planning to launch.
Instructions
Using the information from the modules 01, 02, and 03 summative assessments, construct a dashboard that lists the health needs based on the community needs assessment that was performed and the critical data sources and data sets needed for the population health management program your health system is planning to launch.
Resources
Below is a list of resources that you can review to learn more about how to construct an executive dashboard.Byrnes, J. (2012).
Driving value: solving the issue of data overload with an executive dashboard
. Healthcare Financial Management: Journal Of The Healthcare Financial Management Association, 66(10), 116.Ballou, B., Heitger, D. L., & Donnell, L. (2010).
Creating effective dashboards
. Strategic Finance, 91(9), 27-32Ghazisaeidi, M., Safdari, R., Torabi, M., Mirzaee, M., Farzi, J., & Goodini, A. (2015).
Development of performance dashboards in
healthcare
sector: Key practical issues
. Acta Informatica Medica, 23(5), 317-321.Rosow, E., Adam, J., Coulombe, K., Race, K., & Anderson, R. (2003).
Virtual instrumentation and real-time executive dashboards.
Solution
s for
health care
systems
. Nursing Administration Quarterly, 27(1), 58-76.
.
CompetencyAssess the development of societal standards in re.docxpickersgillkayne
Competency
Assess the development of societal standards in relation to social media and how this can alter social norms in everyday life.
Instructions
The prevalence of social media has had a huge impact on society in the area of how we tend to relate to each other and on what is considered to be normal in general. Taking a look at the ways in which social media changes attitudes and "norms" makes for an interesting study, and one that is applicable to understanding how society is slowly changing over time.
For this assignment, you will first conduct your own research on the effects of social media on societal norms (Part 1), then you will examine what has been found through previous research conducted by others (Part 2).
Part 1:
Compare and contrast the attitudes of two cohorts of people; one that consists of five people that rarely use social media and one cohort of five people that uses social media 2 or more hours a day.
Create a list of five people that you know that use social media at least 2 or more hours per day. This group of people will make up your first cohort. Then create a list of five people that you know that either do not use social media or use it very rarely. Take into account age when creating the cohorts, and try to keep the ages as similar as possible between the cohorts. Keeping a certain level of consistency in the two cohorts will help to negate the potential effects of generational differences. Provide a brief description of each of the ten people you are going to interview divided into their respective cohorts.
In other words, list the five people in the social media at least 2 or more hours a day, and provide a brief description of each along with why you chose them. Then provide a list of the five people that rarely or never use social media, and provide a brief description of each along with why you chose them.
Interview the participants to learn the similarities and differences between the two cohorts as it relates to attitudes, lifestyles, and relationships. Write a two-page paper comparing and contrasting what you learned about the two cohorts. Be sure to relate your findings to cultivation theory and socialization theory in the paper.
Part 2:
Now you will compare your research with research findings through previous research conducted by others. Look up at least 3 articles in the Rasmussen Library that relate to the topic of social media and its impact on society. You are not limited to articles that are strictly written on the specific topic of social media and norms. Articles that are covering social media and society are available from a wide number of angles. After studying these articles, write a two-page paper on what you learned on the topic of social media and its potential impact on societal attitudes, customs, and norms.
.
CompetencyAnalyze the evolution of social media standards an.docxpickersgillkayne
Competency
Analyze the evolution of social media standards and practices and how it relates to the potential need for regulation of social media, along with ethical concerns.
Instructions
Many people get all or most of their news from social media. For this project, we are going to be analyzing the content of several social media sites from major news sources, paying particular attention to social media standards, practices, and regulation.
Where do you get your news? Start by going to one major news site's FACEBOOK page (CNN, MSNBC, FOX, etc.) Try another different news site's TWITTER feed, and third choose another social media site such as Reddit, Pinterest, or another (preferably one you use, if there is one).
Analyze the sites in a 3-5 page total paper. In your analysis, be sure to include the following:
General introduction to your thoughts on the social media you studied
Several social media practices you observed (e.g., what gets the most interaction?)
Examples of regulation of social media and discussion of such regulation (Is it good, bad, or indifferent? How could circumstances change the situation?)
Analysis of ethical concerns (e.g., can you see examples of bias?)
What is the culture of each site – how do users seem to respond to questionable items? (Is racism or open mocking ignored or pursued?)
Conclusion of your findings
.
CompetencyAnalyze the evolution of social media standards and .docxpickersgillkayne
Competency
Analyze the evolution of social media standards and practices and how it relates to the potential need for regulation of social media, along with ethical concerns.
Instructions
Many people get all or most of their news from social media. For this project, we are going to be analyzing the content of several social media sites from major news sources, paying particular attention to social media standards, practices, and regulation.
Where do you get your news? Start by going to one major news site's FACEBOOK page (CNN, MSNBC, FOX, etc.) Try another different news site's TWITTER feed, and third choose another social media site such as Reddit, Pinterest, or another (preferably one you use, if there is one).
Analyze the sites in a 3-5 page total paper. In your analysis, be sure to include the following:
General introduction to your thoughts on the social media you studied
Several social media practices you observed (e.g., what gets the most interaction?)
Examples of regulation of social media and discussion of such regulation (Is it good, bad, or indifferent? How could circumstances change the situation?)
Analysis of ethical concerns (e.g., can you see examples of bias?)
What is the culture of each site – how do users seem to respond to questionable items? (Is racism or open mocking ignored or pursued?)
Conclusion of your findings
.
CompetencyAnalyze leadership and management roles in change ma.docxpickersgillkayne
Competency
Analyze leadership and management roles in change management
Evaluate different change management models.
Examine various roles in change management.
Analyze methods for understanding and mapping change in an organization.
Critique strategies for removing barriers to change.
Examine leadership's role in executing successful change.
Instructions
Delta Pacific Case Study
You serve as the change leader for Delta Pacific Company (DPC). Up until this point, the organizational culture has been one of a traditional culture as the company had a manufacturing environment.DPC has undergone an extensive change from manufacturing to consulting, including new employee roles and responsibilities, training, and resources. However, there have been organizational barriers and employee resistances to the changes, resulting in a declining profitability.You have decided to design a Change Leadership Strategy plan to present to the leaders of DPC to meet their goal of changing the culture from the more traditional manufacturing environment to one of a contemporary consulting environment. To complete your Leading Change Plan, please include the following:
Identify the problems facing Delta Pacific.
Analysis the different roles leaders and managers use for successful implementation of change.
Discuss the roles and responsibilities of leading team members for change.
Compare and contrast advantages and disadvantages of two (2) popular change models. Discuss at least three (3) similarities and three (3) differences of change models. Select one (1) model that you feel best compliments your strategy.
Explain how the change model you selected to use will ensure the most effective and efficient process of changing an organizational culture.
Discuss at least two (2) strategies for overcoming barriers to change.
Discuss the behaviors that Delta Pacific leaders need to exhibit to ensure a positive and successful cultural shift for the long-term.
Provide an APA formatted title page and attribution for credible references used in the development of content ideas following academic guidelines.
.
CompetencyAnalyze financial statements to assess performance a.docxpickersgillkayne
Competency
Analyze financial statements to assess performance and to ensure organizational improvement and long-term viability
.
Scenario
In an ongoing effort to explore the feasibility of expanding services into rural areas of the state, leadership at Memorial Hospital has determined that conducting a review of its financial condition will be essential to ensuring the organization’s ability to successfully achieve its expansion goals.
Instructions
The CFO has provided you with a copy of the organization’s
financial statements
. This information will be critical in evaluating the organization’s financial capacity to support the proposed expansion of services into the rural areas of the state.You are asked to review these financial statements (which include the Income Statement, Statement of Cash Flows, and the Balance Sheet) and prepare an executive summary outlining the financial strength of the organization and evidence to support the expansion. Your executive summary should include the following:
An overview of the issue.
A review of critical financial ratios (Liquidity, Solvency, Profitability, and Efficiency) based on financial statements.
Inferences of forecasts, estimates, interpretations, and conclusions based on the key ratios.
Provide a recommendation based on ration analysis.
*****See attached balance sheet
.
Competency Checklist and Professional Development Resources .docxpickersgillkayne
Competency Checklist and Professional Development Resources
An important and yet often overlooked function of leadership in an early childhood program is the ability to positively influence the people in the program. For this group assignment, consider the characteristics of a leader who can support and lead teachers in reflective teaching. This type of self-reflection is the first step to understanding how a supervisor supports teachers to accomplish their goals through mentoring. For this assignment, your group will need to address the following two components:
Part 1
: Consider the following question as your group completes the competency checklist below: What might be evidence that a teacher leader possesses the competence to also be a mentor? You are encouraged to evenly divide the competencies among your group, so that each member contributes to providing brief examples of interactions while highlighting the characteristic(s) that demonstrates each competency. While this portion can be completed independently, you should then collaborate to ensure that each group member provides feedback before submitting the full collaborative document.
competency checklist
Part 2:
Professional Development Resources Document
–Early childhood programs have numerous curriculum options which may contribute to a need to support teachers and staff in a curriculum context they are not familiar with. Therefore, as we prepare to support protégés, we can refer to the National Association of the Education of Young Children core standards for professional development, to promote the use of best practices. These six core standards, briefly describe what early childhood professionals should know and be able to do. After reading each of the
NAEYC Standards for Early Childhood Professional Preparation Programs (Links to an external site.)
, focus on the first four standards:
STANDARD 1.
PROMOTING CHILD DEVELOPMENT AND LEARNING
STANDARD 2.
BUILDING FAMILY AND COMMUNITY RELATIONSHIPS
STANDARD 3.
OBSERVING, DOCUMENTING, AND ASSESSING TO SUPPORT YOUNG CHILDREN AND FAMILIES
STANDARD 4.
USING DEVELOPMENTALLY EFFECTIVE APPROACHES
Directions: Each group will be assigned a different standard and each member will add at least one resource (such as yearly conferences, websites, leaders in the field, articles, blogs, etc.) that support that specific core standard. The resources will be organized on the attached Google Spreadsheet (which will also record who is submitting each resource). Through this group and class collaborative effort, you will be able to add resources from multiple perspectives that you can later include in your own mentoring portfolio.Be sure to include any relevant information and the following:
the APA citation (article) or organization name/contact information (address, phone number, website).
a brief description of their services in supporting early childhood professionals in their own growth and development.
R.
CompetenciesDetermine the historical impact of art on mode.docxpickersgillkayne
Competencies
Determine the historical impact of art on modern culture, society, and the workplace.
Identify the role of music, poetry, prose, and visual art in the modern world and workplace.
Utilize art elements in real-world contexts and the workplace.
Apply strategies for evaluating different art forms in various contexts.
Explain how art contributes to problem solving skills and idea creation in personal and professional experience.
Identify how art benefits wellness and creativity in the community and workplace.
Scenario
You are an independent contractor who has been hired by a multinational technology company to increase productivity at one branch office. The location in question is failing miserably and your contract with this company is a last ditch effort to bring this location’s productivity up, or else it will be shut down. The designers haven’t submitted a good, usable design to headquarters in months.When you begin your work figuring out what’s going wrong, you immediately see many red flags. Records show that employees call in sick frequently, come in late, leave early, and several complaints between employees have been filed by Human Resources.When you visit the office, you are immediately struck by what a dismal environment you see. Florescent lights flicker over beige cubicles, ambient noise of machines buzzing and phones ringing fills your ears, and employees look bored and tired. You notice only one communal work space piled over with old projects and clutter. The supply room is sparse. The break room is small and cluttered, and nobody is using it.You decide to interview employees and learn some alarming information; employees mostly work alone, do not seem to know each other well, some outright dislike one another, they report having no fun or enjoyment while at work, and some suffer chronic work-related health problems such as migraines and back pain. You notice wonderful diversity among employees, yet nobody seems to appreciate or understand the unique perspectives of their colleagues.It is clear to you that this office is not conducive to the kind of creative collaboration necessary to pull it out of its slump. Using what you know about the importance of art in the world and workplace, you will come up with a plan to solve these problems.
Instructions
Assemble a portfolio of recommendations on how to turn this office from a non-productive location to a creative hub of productivity.Portfolio should include the following parts:
Part 1
Compose an introduction (1-2 paragraphs) indicating the historical impact of art on modern culture, society, and the workplace.
Part 2
Create an infographic on how to use the arts to promote the following within the company:
Collaboration between colleagues
Multiculturalism/diversity
Community engagement
Part 3
Construct a visual model using diagram software of the ideal creative workspace that includes the following areas:
A space for individual work
A space for collabo.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
1. COMP41680 - Sample API Assignment¶
In [5]:
import os
import urllib.request
import csv
import pandas as pd
Task 1: Identify one or more suitable web APIs¶
API Chosen:
A single API that was chosen for this assignment was that
provided by www.worldweatheronline.com
Specifically, the historic weather data API -
http://developer.worldweatheronline.com/api/docs/historical-
weather-api.aspx
The API is no longer freely available but they give out a free 60
day trial upon signing up, this entitles the user to 500 calls to
the API per day.
The API key I received which works here is
fbaf429501ff4c7f92b8463217d103
2. In [3]:
api_key = "fbaf429501ff4c7f92b8463217d103"
Task 2: Collect data your chosen API(s)¶
Collecting Raw Data - Functions needed:
The following 3 functions were written to allow multiple calls
of the API as only limited data is available per call.
These function are commented throughout and are called below:
In [4]:
#create a file with set headings - 2 diff types of data to store
def create_file (file_loc, headings):
with open(file_loc, "w",newline='') as write_file: #as in
get_and_write_data function
f = csv.writer(write_file)
f.writerow(headings)
write_file.close()
3. #function to call the API, retreive the raw csv data, and write to
a file
def get_and_write_data(link, file_loc):
response = urllib.request.urlopen(link)
html = response.read().decode()
with open(file_loc, "a",newline='') as write_file: #open the
file / create it, newline ='' to prevent blank lines being written
f = csv.writer(write_file)
lines = html.strip().split("n")
for l in lines:
if l[0] =="#": # prevent it from writing the comments in
the return of each API call
continue
elif l[0:10] in ["Not Availa", "There is n"]: #prevent it
from writing lines where no data is present (i.e. returns saying
- "Not Available" or "There is no weather data available for the
date provided. Past data is available from 1 July, 2008 onwards
only.")
continue
else: #if doesn't have those it is data and so should be
written
l = l.split(",") #it comes in as a String, so convert to
a list for later easier writing and manipulation
f.writerow(l)
#print ("Line Written")
write_file.close()
#return print ("Monthly Data Appending to Raw File -
Completed")
# function to take in parameters set and then use this data to
build a link
# to be passed into the get_and_write_data function
def get_raw_data(file_loc, api_key, location, year, month):
#month needs to be a string to avoid invalid token errors for
ints as the API needs a leading 0 for single digit months
4. while year <=2016: #iterate for all years available in api,
namely July 2008 to date
if month == "02": #need to change end date in the call to
the API as it doesn't return full values if the date doesn't exist,
e.g. 31st of February
end_day = "28"
elif month in ["04", "06", "09", "11"]:
end_day = "30"
else:
end_day = "31"
# the bulding of the link is what decides the data returned,
it's available in hourly intervals,
# for any location in different formats, the documentation
below outlines the possibilities
#
http://developer.worldweatheronline.com/api/docs/historical-
weather-api.aspx
link =
"http://api.worldweatheronline.com/premium/v1/past-
weather.ashx?key="+ api_key + "&q="+ location
+"&format=csv&date="+ str(year) + "-"+ month +"-
01&enddate="+ str(year) + "-"+ month +"-"+ str(end_day)
+"&tp=24"#
get_and_write_data(link, file_loc)
year = year+1
Task 3: Parse the collected data, and store it in an appropriate
file format¶
Collecting Raw Data and writing raw data to CSV:
The following code retreives the raw data using the above
Functions from the API and writes it to a CSV file.
This data needs extensive cleaning and manipulation before it
can be used.
5. In [98]:
###Set Variable get the raw data from the API and store in the
File location set here
location = "Dublin"
raw_file_loc = "weather-data-raw.csv"
create_file (raw_file_loc, " ") # create a file with no headings to
store the raw data, no headings needed as the data returns 2
distinct CSV lines with different # of columns
# the api only returns 1 month worth of data at a time
# so a loop to iterate over all months beginning at Jan is needed
# the API needs the month in 0x format, therefore months 1-9
need to have a 0 added to the front,
# therefore the conversion between int and str was necessary
here and a string is passed through to the funtion
month = 1
while month <= 12:
if month <10:
month = "0" + str(month)
else:
month = str(month)
get_raw_data(raw_file_loc, api_key, "location", 2008,
month)
month = int(month)+1
print("Raw Data Collection Completed n")
Begin Raw Data Collection
6. Raw Data Collection Completed
Task 4: Load and represent the data using an appropriate data
structure. Apply any pre-processing steps to
clean/filter/combine the data¶
Parsing Raw Data:
The raw data returns alternating lines of values, 8 CSVs for
each day, and 24 columns of "Hourly data" which is also a daily
average as the call to the API has been configured.
These need to be parsed and the data that is to be used later
saved, while only 1 data set was needed, I decided to keep and
write both sets to different files, for future proofing.
In [ ]:
hourly_file = "weather-data-hourly.csv"
daily_file = "weather-data-daily.csv"
#these are the headings as provided by the API documentation
hourly_headings =
["date","time","tempC","tempF","windspeedMiles","windspeed
Kmph","winddirdegree","winddir16point","weatherCode","weat
herIconUrl","weatherDesc","precipMM","humidity","visibilityK
m","pressureMB","cloudcover","HeatIndexC","HeatIndexF","De
7. wPointC","DewPointF","WindChillC","WindChillF","WindGust
Miles","WindGustKmph","FeelsLikeC","FeelsLikeF"]
daily_headings =
["date","maxtempC","maxtempF","mintempC","mintempF","sun
rise","sunset","moonrise","moonset"]
#call on the function to create the files as needed
create_file(hourly_file, hourly_headings)
create_file(daily_file, daily_headings)
# open the raw data and then based on the length of the line,
write to appropriate file
# the len of the lines is actually around 58-62 and over 180, so
100 was chosen for safety,
# this can be easily changed in future if the API changes
raw_data = open(raw_file_loc, "r")
lines = raw_data.readlines()
for l in lines:
# print (len(l))
if len(l) <= 100:
with open(daily_file, "a",newline='') as daily:
df = csv.writer(daily)
l = l.split(",")
df.writerow(l)
daily.close()
elif len(l) >101:
with open(hourly_file, "a",newline='') as hourly:
hf = csv.writer(hourly)
l = l.split(",")
hf.writerow(l)
hourly.close()
else:
continue
raw_data.close()
Utilising Pandas and further Data Modification With the CSV
8. files written these are imported using Pandas.2 columns were
chosen for analysis, namely Temperature and Precipitation for
each dayThe date field was stored as a String, so this was
converted to a Datetime to allow for time analysis.
In [5]:
hourly_data = pd.read_csv(hourly_file)
daily_data = pd.read_csv(daily_file)
#convert date string to datetime -
http://stackoverflow.com/questions/17134716/convert-
dataframe-column-type-from-string-to-datetime
pd.options.mode.chained_assignment = None # default='warn'
## suppress warning regarding A value is trying to be set on a
copy of a slice from a DataFrame. - same warning was
appearing using a For loop, the index and .loc, and that loop
took 5 minutes to run on my machine
hourly_data['date'] = pd.to_datetime(hourly_data['date']) #
removed from to_datetime {, format="YYYY-MM-DD"}
#for i in simplified_data.index:
#
simplified_data.loc[i,'date']=pd.to_datetime(simplified_data.loc
9. [i, 'date'])
simplified_data = hourly_data[["date", "tempC", "precipMM"]]
# extract temp and precip data for analysis and visualisation
simplified_data = simplified_data.sort_values(by=['date']) #
reorder the data by date
In [101]:
hourly_data[0:5]
12. Final Pre-Processing steps are to look for missing data to see if
further pre-processing is needed.
In [138]:
#look for missing data
simplified_data.isnull().sum() # no missing values in the
reduced dataset
Out[138]:
14. Out[104]:
float64 1
int64 1
datetime64[ns] 1
dtype: int64
There's no Null's in the data, there's also no strings either, this
means there's therefore no values in it such as "Not Available"
or for example "No moonrise" in moonrise column, etc.
Both of these are highly indicative that all values are present.
The final Pre-processing step is to get Monthly averages to
create a reduced size data set that can be easier visualised, but
still accurate and indicative of the months rain and temperature.
In [107]:
15. monthly =
simplified_data.groupby([pd.Grouper(key='date',freq='M')]) #
http://stackoverflow.com/questions/32982012/grouping-
dataframe-by-custom-date
avg_month = monthly.mean() #create a new DF based on the
mean of the groupby object created above
print(avg_month[0:5])
tempC precipMM
date
2008-07-31 16.419355 8.290323
2008-08-31 17.064516 7.906452
2008-09-30 15.833333 5.186667
2008-10-31 13.032258 5.477419
2008-11-30 10.766667 3.250000
Task 5: Analyse and summarise the cleaned dataset¶
Descriptive Statistics
Initially of the Data Set containing all daily data:
In [110]:
print("nSimplified_data columnns:n" +
str(simplified_data.columns) + "n")
print("Simplified_data Descriptive Stats:n")
print(simplified_data.describe())
17. Descriptive Stats:
tempC precipMM
count 92.000000 92.000000
mean 12.742613 3.327383
std 3.926780 2.076563
min 4.000000 0.100000
25% 9.403226 1.858871
50% 12.768817 2.784516
75% 16.108333 4.209516
max 21.354839 12.500000
As can be seen from comparing both descriptive stats, the
monthly average, seems to have removed outliers (e.g. max
precipitation 52mm), has reduced the standard deviation, but the
quartiles have remained largely the same.
Matplotlib and Pandas Graphing
In [112]:
import matplotlib
import matplotlib.pyplot as plt
%matplotlib inline
Line Graphs and Area Plot¶
19. In [35]:
avg_month.plot.area(stacked=False)
Out[35]:
<matplotlib.axes._subplots.AxesSubplot at 0x245e5c3d5c0>
Basic Line Graph and Area Plot show how temp and precip
interact, as expected Temp increases and falls based on time of
year.
Precipitation doesn't seem to follow the same expected trend. It
seems the Irish reputation for never ending rain is well
deserved, although it would appear to have fallen in recent
years.Stacked Histogram¶
Shows the distribution of the data.
23. In [39]:
from pandas.tools.plotting import scatter_matrix
scatter_matrix(avg_month, alpha=0.2, figsize=(6, 6),
diagonal='kde')
Out[39]:
array([[<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E6D16278>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E6DAC5F8>],
[<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E6DF5F98>,
25. Out[40]:
array([[<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E6C462B0>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E7606278>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E764F470>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E76859E8>],
[<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E76CEB38>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E6D7B160>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E4FA96D8>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E4F505C0>],
[<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E77666A0>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E77B08D0>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E77ED470>,
<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E78354A8>],
[<matplotlib.axes._subplots.AxesSubplot object at
0x00000245E7875C50>,
<matplotlib.axes._subplots.AxesSubplot object at
27. In [55]:
avg_month.plot(subplots=True, figsize=(6, 6));
Final Manipulation, Exploration and Visualisation¶Temperature
v Precipitation¶
For the purposes of this exploration, 2 new Data Frames were
created, grouping by Temp and Precipitation and comparing to
the mean value of the other, this data was then explored as
outlined further below
28. In [132]:
#x="tempC", y="precipMM"
avg_month_temp = avg_month.groupby("tempC")
temp_data = avg_month_temp.mean() #create a new DF based
on the mean of the groupby object created above
print(temp_data[4:7])
precipMM
tempC
4.000000 12.500000
5.333333 0.100000
6.322581 4.441935
6.392857 2.585714
6.903226 2.574194
In [135]:
29. plt.figure()
avg_month_temp.mean().plot()#secondary_y=['precipMM'])
plt.title("Avg amount (mm) of Precipitation as Temperature
increases (Dublin since July 2008)n")
plt.xlabel("Temperature - C")
plt.ylabel("Precipitation MM")
plt.show()
<matplotlib.figure.Figure at 0x245e039cf98>
In [136]:
#x="tempC", y="precipMM"
avg_month_precip = avg_month.groupby("precipMM")
precip_data = avg_month_precip.mean() #create a new DF
based on the mean of the groupby object created above
print(precip_data[0:1])
tempC
precipMM
0.100000 5.333333
30. 0.722581 11.387097
0.733333 19.166667
In [137]:
plt.figure()
avg_month_precip.mean().plot()#secondary_y=['precipMM'])
plt.title("Avg Temperature as amount of Precipitation increases
(Dublin since July 2008)n")
plt.xlabel("Precipitation - MM")
plt.ylabel("Temperature - C")
plt.show()
<matplotlib.figure.Figure at 0x245e0386b38>
Tentative Conclusion¶
Further in-depth studies and tests could be carried out to test
the statistical significant of the results, and to incorporate other
meterological datasets. However, based on the current data,
there does not seem to be a strong relationship between level of
31. rain compared to temperature.
So it doesn't really matter how hot it gets in Dublin, we can still
expect rain!
COMP47670 Assignment 1: Data Collection & Preparation
Deadline: Monday 23rd March 2020
Overview:
The objective of this assignment is to collect a dataset from one
or more open web APIs of your choice, and use Python to
preprocess and analyse the collected data.
The assignment should be implemented as a single Jupyter
Notebook (not a script). Your notebook should be clearly
documented, using comments and Markdown cells to explain the
code and results.
Tasks:
For this assignment you should complete the following tasks:
1. Data identification:
· Choose at least one open web API as your data source (i.e. not
a static or pre-collected dataset). If you decide to use more than
one API, these APIs should be related in some way.
2. Data collection:
· Collect data from your API(s) using Python. Depending on the
API(s), you may need to repeat the collection process multiple
times to download sufficient data.
· Store the collected data in an appropriate file format for
subsequent analysis (e.g. JSON, XML, CSV).
3. Data preparation and analysis:
· Load and represent the data using an appropriate data structure
(i.e. records/items as rows, described by features as columns).
· Apply any preprocessing steps that might be required to clean
or filter the data before analysis. Where more than one API is
used, apply suitable data integration methods.
· Analyse, characterise, and summarise the cleaned dataset,
using tables and plots where appropriate. Clearly explain and
interpret any analysis results which are produced.
32. · Summarise any insights which you gained from your analysis
of the data. Suggest ideas for further analysis which could be
performed on the data in future.
Guidelines:
· The assignment should be completed individually. Any
evidence of plagiarism will result in a 0 grade.
· Submit your assignment via the COMP47670 Brightspace
page. Your submission should be in the form of a single ZIP file
containing the notebook (i.e. IPYNB file) and your data. If your
data is too large to upload, please include a smaller sample of
the data in the ZIP file.
· In the notebook please clearly state your full name and your
student number. Also provide links to the home pages for the
API(s) which you used.
· Hard deadline: Submit by the end of Monday 23rd March 2020
· 1-5 days late: 10% deduction from overall mark
· 6-10 days late: 20% deduction from overall mark
· No assignments accepted after 10 days without extenuating
circumstances approval and/or medical certificate.