Skip to content

Instantly share code, notes, and snippets.

View Pierian-Data's full-sized avatar

Pierian Data Pierian-Data

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>file_1655850386693</title><style type="text/css"> * {margin:0; padding:0; text-indent:0; }
h1 { color: black; font-family:"Segoe UI Semibold", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 21.5pt; }
p { color: black; font-family:"Segoe UI", sans-serif; font-style: normal; font-weight: normal; text-decoration: none; font-size: 10.5pt; margin:0pt; }
h2 { color: black; font-family:"Segoe UI Semibold", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 18pt; }
a { color: #1876D2; font-family:"Segoe UI", sans-serif; font-style: normal; font-weight: normal; text-decoration: none; font-size: 10.5pt; }
.s1 { color: #1876D2; font-family:"Segoe UI", sans-serif; font-style: nor
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import datetime
from airflow import models
from airflow.operators import bash
# If you are running Airflow in more than one time zone
# see https://airflow.apache.org/docs/apache-airflow/stable/timezone.html
# for best practices
YESTERDAY = datetime.datetime.now() - datetime.timedelta(days=1)
{
"artifact": {
"name": "cdap-data-pipeline",
"version": "6.1.1",
"scope": "SYSTEM"
},
"description": "Data Pipeline Application",
"name": "Delayed-Shipments-US",
"config": {
"resources": {
{
"artifact": {
"name": "cdap-data-pipeline",
"version": "6.6.0",
"scope": "SYSTEM"
},
"description": "Pipeline that cleans raw shipment data and loads it into a logistics data lake.",
"name": "Shipment-Data-Cleansing",
"config": {
"resources": {
{
"artifact": {
"name": "cdap-data-pipeline",
"version": "6.1.1",
"scope": "SYSTEM"
},
"description": "Data Pipeline Application",
"name": "Delayed-Shipments-US",
"config": {
"resources": {
{
"artifact": {
"name": "cdap-data-pipeline",
"version": "6.1.1",
"scope": "SYSTEM"
},
"description": "Pipeline that cleans raw shipment data and loads it into a logistics data lake.",
"name": "Shipment-Data-Cleansing",
"config": {
"resources": {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def myfunc(x):
out = []
for i in range(len(x)):
if i%2==0:
out.append(x[i].lower())
else:
out.append(x[i].upper())
return ''.join(out)
def myfunc(*args):
out = []
for num in args:
if num%2==0:
out.append(num)
return out