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
region | state | individuals | family_members | state_pop | ||
---|---|---|---|---|---|---|
0 | East South Central | Alabama | 2570.0 | 864.0 | 4887681 | |
1 | Pacific | Alaska | 1434.0 | 582.0 | 735139 | |
2 | Mountain | Arizona | 7259.0 | 2606.0 | 7158024 | |
3 | West South Central | Arkansas | 2280.0 | 432.0 | 3009733 | |
4 | Pacific | California | 109008.0 | 20964.0 | 39461588 | |
5 | Mountain | Colorado | 7607.0 | 3250.0 | 5691287 | |
6 | New England | Connecticut | 2280.0 | 1696.0 | 3571520 | |
7 | South Atlantic | Delaware | 708.0 | 374.0 | 965479 | |
8 | South Atlantic | District of Columbia | 3770.0 | 3134.0 | 701547 |
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
ham Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat... | |
ham Ok lar... Joking wif u oni... | |
spam Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. Text FA to 87121 to receive entry question(std txt rate)T&C's apply 08452810075over18's | |
ham U dun say so early hor... U c already then say... | |
ham Nah I don't think he goes to usf, he lives around here though | |
spam FreeMsg Hey there darling it's been 3 week's now and no word back! I'd like some fun you up for it still? Tb ok! XxX std chgs to send, £1.50 to rcv | |
ham Even my brother is not like to speak with me. They treat me like aids patent. | |
ham As per your request 'Melle Melle (Oru Minnaminunginte Nurungu Vettam)' has been set as your callertune for all Callers. Press *9 to copy your friends Callertune | |
spam WINNER!! As a valued network customer you have been selected to receivea £900 prize reward! To claim call 09061701461. Claim code KL341. Valid 12 hours only. | |
spam Had your mobile 11 months |
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
library(tidyverse) # pacote com divdersas funções úteis para Data Analysis | |
install.packages('pacman') | |
library(pacman) | |
pacman::p_load(pacman,dplyr, ggplot2, rio, gridExtra, scales, ggcorrplot, caret, e1071) | |
# Função de plotagem | |
fig <- function(width, heigth){ | |
options(repr.plot.width = width, repr.plot.height = heigth) | |
} |
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
df <- read.csv("https://raw.githubusercontent.com/qodatecnologia/mobileprice/main/train.csv") | |
head(df) |
We can't make this file beautiful and searchable because it's too large.
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
longitude,latitude,housing_median_age,total_rooms,total_bedrooms,population,households,median_income,median_house_value,ocean_proximity | |
-122.23,37.88,41.0,880.0,129.0,322.0,126.0,8.3252,452600.0,NEAR BAY | |
-122.22,37.86,21.0,7099.0,1106.0,2401.0,1138.0,8.3014,358500.0,NEAR BAY | |
-122.24,37.85,52.0,1467.0,190.0,496.0,177.0,7.2574,352100.0,NEAR BAY | |
-122.25,37.85,52.0,1274.0,235.0,558.0,219.0,5.6431,341300.0,NEAR BAY | |
-122.25,37.85,52.0,1627.0,280.0,565.0,259.0,3.8462,342200.0,NEAR BAY | |
-122.25,37.85,52.0,919.0,213.0,413.0,193.0,4.0368,269700.0,NEAR BAY | |
-122.25,37.84,52.0,2535.0,489.0,1094.0,514.0,3.6591,299200.0,NEAR BAY | |
-122.25,37.84,52.0,3104.0,687.0,1157.0,647.0,3.12,241400.0,NEAR BAY | |
-122.26,37.84,42.0,2555.0,665.0,1206.0,595.0,2.0804,226700.0,NEAR BAY |
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import pandas as pd\n", | |
"df = pd.read_csv('ViewingActivity-sample.csv')" |
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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Este é um título de nível 1\n", | |
"\n", | |
"## Este é um título de nível 2\n", | |
"\n", |
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 requests | |
class vdocipher() : | |
values = {} | |
def __init__(self, csk): | |
self.values[ 'clientSecretKey' ] = csk | |
def getOtp(self, video, annotate=None, forcedBitrate=None): | |
url = 'https://api.vdocipher.com/v2/otp?video='+video |
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
# Using linear regression becasuse we want a QUANTITY VALUE: the price | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy | |
from sklearn.linear_model import LinearRegression | |
size = [[7],[10],[15],[30],[45]] #diameter of pizza | |
price = [[8],[11],[16],[38.5],[52]] #price in BRAZILIAN REALS, off course! R$ | |
#seeing this in graph | |
plt.figure() | |
plt.xlabel('Diameter(cm)') |