Skip to content

Instantly share code, notes, and snippets.

View minngk's full-sized avatar
🏠
Working from home

MiraiNagaoka minngk

🏠
Working from home
View GitHub Profile
@thiloplanz
thiloplanz / FusekiExample.java
Created March 20, 2015 01:52
Example how to access the Apache Jena Fuseki server via the Java API: Upload model, run select query
// Written in 2015 by Thilo Planz
// To the extent possible under law, I have dedicated all copyright and related and neighboring rights
// to this software to the public domain worldwide. This software is distributed without any warranty.
// http://creativecommons.org/publicdomain/zero/1.0/
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import com.hp.hpl.jena.query.DatasetAccessor;
@utahka
utahka / df_append.py
Created September 18, 2017 07:32
空のデータフレームを作って、レコードを追加していくパターン
import pandas as pd
cols = ['col1', 'col2']
df = pd.DataFrame(index=[], columns=cols)
record = pd.Series(['hoge', 'fuga'], index=df.columns)
for _ in range(5):
df = df.append(record, ignore_index=True)