This file contains 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 logging | |
import boto3 | |
from botocore.exceptions import ClientError | |
logger = logging.getLogger(__name__) | |
glacier=boto3.resource('glacier') | |
# Create a Vault | |
def create_vault(vault_name): |
This file contains 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
int a; | |
int voltage_A2 = A2; | |
int actualvoltage; | |
int voltage; | |
void setup() | |
{ | |
pinMode(8, OUTPUT); //LED 1 | |
pinMode (9, OUTPUT); //LED 2 |
This file contains 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 RPi.GPIO as GPIO | |
import time | |
GPIO.setmode(GPIO.BOARD) #define the pin that goes to the circuit | |
pin_to_circuit = 22 | |
def rc_time (pin_to_circuit): | |
count = 0 #Output on the pin for | |
GPIO.setup(pin_to_circuit, GPIO.OUT) | |
GPIO.output(pin_to_circuit, GPIO.LOW) | |
time.sleep(0.1) #Change the pin back to input | |
GPIO.setup(pin_to_circuit, GPIO.IN) #Count until the pin goes high |
This file contains 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_profiling | |
data.profile_report() |
This file contains 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 dataprep.eda import plot | |
plot(data) |
This file contains 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 dataprep.eda import plot | |
plot(data) |
This file contains 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 | |
import numpy as np | |
from sklearn.svm import SVC | |
from sklearn.model_selection import train_test_split | |
from sklearn import datasets | |
data=pd.read_csv('Iris.csv') | |
# iris=datasets.load_iris() | |
# x=iris.data | |
# y=iris.target | |
#print(y) |
This file contains 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 quickda.explore_time_series import * | |
eda_timeseries(data, x='date', y='Occupancy') |
This file contains 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 quickda.explore_numeric import * | |
eda_num(data, method='correlation') |
This file contains 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 quickda.explore_data import * | |
explore(data) |
NewerOlder