GithubHelp home page GithubHelp logo

vigneshss-07 / cloud-ai-analytics Goto Github PK

View Code? Open in Web Editor NEW
44.0 5.0 68.0 16.12 MB

This Repo contain details related to Data Engineering tech stacks in GCP

Python 22.17% Jupyter Notebook 77.83%
apachebeam bigquery clouddataflow datalab google-cloud-platform cloudsql bigdata spark

cloud-ai-analytics's Introduction

Hey there..!!! I'm Vignesh S S!

-> Scroll down to see my Pinned Repositories.

def vignesh_07():
  skills_with_proficiency = {'Python': 'Advance', 'PySpark' : 'Advance','SQL & NoSQL': 'Intermediate', 'DSA': 'Intermediate', 'Statistics' : 'Advance'}
  tools = ['dbt tool', 'github', 'BigQuery', 'sklearn', 'Data Modeling', 'Data Analytics', 'json', 'yaml', 'powerBI', 'pyspark', 'Looker Studio', 'GCP Analytics Services', 'Bigdata technologies', 'etl/elt pipelines', 'ci/cd-devops']
  cloud_architecture = [' Google Cloud Platform', 'Microsoft Azure Services']
  active_blogger = True
  return cool

๐Ÿ“• ย Latest Blog Posts

Connect with me:

Vignesh's LinkedIN Cloud_AI_Analytics | YouTube

Note: Please do not spam on the above mentioned profiles.

cloud-ai-analytics's People

Contributors

subashkonar13 avatar vigneshss-07 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cloud-ai-analytics's Issues

bigquery_client in BigQuery/bigquery.py does not appear to be defined

Hi there. Followed one of your YouTube tutorials on using API in Python to create a dataset and table which you provided here on your repo

In the provided Python code, the variable bigquery_client does not appear to be defined in the code itself. The functions bq_create_dataset and bq_create_table are defined to take a client parameter, but the actual variable name bigquery_client is not used within the functions. I think it could also be missing 'client = bigquery.Client()' but again - I may be misunderstanding.

Greatly appreciate any insight you can provide.

#import libraries
from google.cloud import bigquery
from google.cloud.exceptions import NotFound


#Function to create a dataset in Bigquery
def bq_create_dataset(client, dataset):
    dataset_ref = **bigquery_client**.dataset(dataset)

    try:
        dataset = **bigquery_client**.get_dataset(dataset_ref)
        print('Dataset {} already exists.'.format(dataset))
    except NotFound:
        dataset = bigquery.Dataset(dataset_ref)
        dataset.location = 'US'
        dataset = bigquery_client.create_dataset(dataset)
        print('Dataset {} created.'.format(dataset.dataset_id))
    return dataset

#Function to create a dataset in Table
def bq_create_table(client, dataset, table_name):
    dataset_ref = bigquery_client.dataset(dataset)

    # Prepares a reference to the table
    table_ref = dataset_ref.table(table_name)

    try:
        table =  bigquery_client.get_table(table_ref)
        print('table {} already exists.'.format(table))
    except NotFound:
        schema = [
            bigquery.SchemaField('S_No', 'INTEGER', mode='REQUIRED'),
            bigquery.SchemaField('Age_in_cm', 'INTEGER', mode='REQUIRED'),
            bigquery.SchemaField('Weight_in_Kg', 'INTEGER', mode='REQUIRED'),
            bigquery.SchemaField('Name', 'STRING', mode='REQUIRED'),
        ]
        table = bigquery.Table(table_ref, schema=schema)
        table = bigquery_client.create_table(table)
        print('table {} created.'.format(table.table_id))
    return table

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.