Giter Club home page Giter Club logo

studyjupyter's Introduction

Study Jupyter by Natthawut Ponkrut Joblackpoc 12-10-2018

case study about data_exchange from HDC database

  1. Install anaconda from www.anaconda.com
  2. Update anaconda -> conda update --all
  3. Upgrade python pip -> python -m pip install --upgrade pip
  4. Install pivottablejs -> 4.1 pip install pivottablejs 4.2 conda install pivottablejs
  5. Install package -> Open Anaconda Navigator install package - matplotlib, numpy, pandas, pivottable
  6. Install pymysql -> conda install -c anaconda pymysql

Mysql connection

import os
import pymysql
import pandas as pd

host = os.getenv('Mysql_host')
port = os.getenv('Mysql_port')
user = os.getenv('Mysql_user')
password = os.getenv('Mysql_password')
database = os.getenv('Mysql_database')

conn = pymysql.connect(
		host = host,
		port = int(3306),
		user = "root",
		passwd = "",
		db = "typearea_4",
		chaset = "utf8mb4"
		)
df = pd.read_sql_query("select * from typearea_4", conn)
df.tail(10)
  1. Read csv file import pandas as pd df = pd.read_csv('data/typearea_4.csv') df.head()

  2. pivot_ui import pandas as pd df = pd.read_csv('data/QueryTypearea_4JOIN.csv') from pivottablejs import pivot_ui pivot_ui(df) right click pop_out open in new tab

  3. Past folder rdc_report in htdocs http://localhost/rdc_report

Please Clear person typearea_4 from your database soon

We will support you when we follow up

See you next time

Thank you Good Luck

Natthawut Ponkrut : [email protected]

studyjupyter's People

Contributors

joblackpoc avatar

Stargazers

 avatar

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.