Skip to content

Instantly share code, notes, and snippets.

View VinitaSilaparasetty's full-sized avatar
👩‍💻
Chief Data Scientist | Generative AI | Author | Speaker | Python | Tensorflow

Vinita Silaparasetty VinitaSilaparasetty

👩‍💻
Chief Data Scientist | Generative AI | Author | Speaker | Python | Tensorflow
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VinitaSilaparasetty
VinitaSilaparasetty / product_table.csv
Last active September 18, 2022 20:23
product_table
Price Product
$9 Shampoo
$4 Soap
$15 Lotion
$10 Handwash
con_key="**"
con_sec="**"
acc_tok="**-**"
acc_sec="***"
from textblob import TextBlob
import tweepy
A B C D
-1.604969 -0.106263 -1.002924
-0.404667 0.458565 -1.174912
0.440231 1.713480 0.162473 -1.632132
0.081050 0.639851 0.844037 1.463154
-1.013616 -0.224553 1.786915 1.041241
-1.013616 -0.224553 1.786915 1.041241
-0.488965 0.946528 0.829525 -0.529912
-0.488965 0.946528 0.829525 -0.529912
num_ratings positive_rating price wine_type country world grape region rating_score wine_servings
61 54 6.99 white wine Australia new world 0.885245901639344
34 34 21.99 red wine Australia new world 1
16 15 28 fine wine Argentina new world merlot 0.9375
13 12 17.99 white wine New Zealand new world marlborough wine 0.923076923076923
3 3 40 fine wine France old world burgundy 1
36 34 26.99 rose wine France old world 0.944444444444444
0 0 9.99 white wine
43 41 9.99 white wine France old world south of france 0.953488372093023
22 19 7.99 white wine 0.863636363636364
import sqlite3
import sys
con = sqlite3.connect('population.db')
data("sales")
cube = generateCube(sales, columns = list(time = c("month", "year"),location = c("state"), product = "product"), valueColumn = "amount")