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 streamlit as st | |
import numpy as np | |
import pandas as pd | |
import plotly.express as px | |
import plotly.graph_objects as go | |
# Set page title | |
st.title('Product Metrics vs Price Demo') | |
# Generate random data |
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 google | |
from google.ads.googleads.client import GoogleAdsClient | |
# Load client configuration from `google-ads.yaml` file. | |
client = GoogleAdsClient.load_from_storage("google-ads.yaml") | |
# Initialize the Google Ads API service client. | |
google_ads_service = client.get_service("GoogleAdsService") |
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
setwd('/home/rauf/Programs/DM_Labs/day_4') | |
require(igraph) | |
path <- "vk_data/adj/egonet_755.txt" | |
a<-read.table(path, sep=' ', dec = ' ', header = T) | |
#directed - T or F - в зависимости от значения, | |
#при Т - создает направленный граф, при F - ненаправленный | |
a.network <- graph.data.frame(a, directed = F) | |
a.network <- simplify(a.network) |