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 | |
import pandas as pd | |
#prepare dataset | |
data_set = {"area_m2":[10,15,17,23,27,30,34],"price_$":[1000,1100,1150,1200,1250,1300,1400]} | |
df = pd.DataFrame(data_set) | |
df.head() | |
#training Data, X_train is feature, y_train is target | |
X_train = df[["area_m2"]] |
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 configparser | |
import tweepy | |
# Read Config | |
config = configparser.ConfigParser() | |
config.read('config.ini') | |
#access keys | |
api_key = config['twitter']['api_key'] |
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
[twitter] | |
#Add your api keys here (Twitter Developer) | |
api_key = Hrq3OUspHT6hebrjm10Y | |
api_key_secret = ydZLrAVvOE5moGuDRwvUPzPcTXaA7cJ1nNtl7F5mdb | |
access_token = 9202038791947343OypRebxwXE0j5O4bDhGZrYH | |
access_token_secret = iQHXglN3nP5EhDpfobAdpGQVvjHceJQyKD3l |