INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
import pandas as pd | |
import datetime | |
#nama file | |
source = 'marketingresign_is_shipper_false.csv' | |
try: | |
mulai = datetime.datetime.now() | |
#baca csv, csv saya separatornya comma, ubah menjadi sep='\t' jika separator file anda tab | |
data = pd.read_csv(source, sep=',') |
'''ini prinsipnya sama dengan EOD_direct_to_db_merged.py, bedanya ini nonmerged, pake ini karena eod model lama sering error 'date' ''' | |
import sys | |
sys.path.append('/Users/andra/Downloads/adrx_repo/bitbucket/newpystock/reorg') | |
from datetime import datetime, timedelta | |
import pandas as pd | |
#agar bisa kayak gini maka harus bikin __init__.py di folder | |
from lib.yfx_fakeuseragent_modami import IntraData as ambil | |
import pymysql |
This works in a python 3.6 environment with bokeh and flask installed. To use this you need the following directory structure:
app/
- templates/
- hello.html
- bokeh-slider.py
- hello.py
After that you need to open two terminals at app/, in the first one you need to run the bokeh server with the command:
import matplotlib | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import squarify | |
# qualtities plotted | |
# squarre area is the town surface area (superf) | |
# color scale is the town population in 2011 (p11_pop) | |
# read data from csv file |
package main | |
import "fmt" | |
// Very naive answer. | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
n := 0 | |
a := 0 |
package main | |
import "fmt" | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
f2, f1 := 0, 1 | |
return func() int { | |
f := f2 |
#!/bin/sh | |
for d in */ ; do | |
HOME=$(pwd)/$d; | |
echo $d; | |
# Remove the comment by your need | |
# megasync # first run (configure client by client at once) | |
# megasync 2> /dev/null & # load all clients at non blocking way | |
done |