SQL | Python |
---|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import math | |
SQL | Python |
---|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
titanic_df = pd.read_csv("titanic_test_data.csv") | |
SQL | Python |
---|---|
SQL | Python |
---|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import datetime | |
from tqdm import tqdm | |
import csv | |
from datetime import datetime | |
directory = "messages/inbox" | |
folders = os.listdir(directory) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parser.add_argument("--country",choices=["Singapore", "United States", "Malaysia"], help="Country/Region of Employee") | |
COUNTRY = args.country | |
print("Country : " + str(COUNTRY)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from distutils.util import strtobool | |
parser.add_argument("--isFullTime", default=True, type=strtobool, help="Is this Employee Full Time? (default: %(default)s)") | |
FULLTIME = args.isFullTime | |
if FULLTIME: | |
print(NAME + " is a full time employee.") | |
else: | |
print(NAME + " is not a full time employee.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser(description=""" | |
This script is going to create an employee profile. | |
""") | |
parser.add_argument("name", help="Name of Employee") | |
parser.add_argument("title", help="Job Title of Employee") | |
parser.add_argument("--address", help="Address of Employee") |