We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 52 columns, instead of 44 in line 6.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
番号,設置形態,大学名,,平成30年度大学入学者選抜,,,,,,,,平成29年度大学入学者選抜,,,,,,,,平成28年度大学入学者選抜,,,,,,,,平成27年度大学入学者選抜,,,,,,,,平成26年度大学入学者選抜,,,,,,,,平成25年度大学入学者選抜,,,,,,, | |
,,,,受験者数,,,合格者数,,,合格率(合格者数/受験者数),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, | |
,,,,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性 | |
1,国立,北海道大学,合計,254,77,331,87,17,104,34%,22%,259,71,330,80,22,102,31%,31%,266,105,371,78,25,103,29%,24%,222,68,290,82,20,102,37%,29%,254,76,330,83,19,102,33%,25%,242,89,331,75,28,103,31%,31% | |
1,国立,北海道大学,うち18歳以下,122,44,166,34,11,45,28%,25%,119,28,147,35,7,42,29%,25%,123,51,174,37,9,46,30%,18%,98,35,133,35,11,46,36%,31%,101,42,143,37,14,51,37%,33%,100,42,142,36,9,45,36%,21% | |
1,国立,北海道大学,うち19歳,73,18,91,41,5,46,56%,28%,74,20,94,34,13,47,46%,65%,58,27,85,24,11,35,41%,41%,52,14,66,26,7,33,50%,50%,61,14,75,21,2,23,34%,14%,59,30,89,22,14,36,37%,47% | |
1,国立,北海道大学,うち20歳,23,3,26,8,0,8,35%,0%,23,11,34,4,1,5,17%,9%,30,11,41,13,4,17,43%,36%,24,5,29,13,1,14,54%,20%,34,10,44,14,2,16,41%,20% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import numpy as np | |
from scipy import stats | |
import matplotlib.pyplot as plt | |
import matplotlib | |
from matplotlib import rc | |
font = {'family':'IPAexGothic'} | |
rc('font', **font) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.math._ | |
def gauss(dim: Int, sigma: Float): Array[Array[Float]] = { | |
if(dim%2==0) | |
throw new Exception("dim must be odd.") | |
val arr = Array.fromFunction(i=>{ | |
Array.fromFunction({j=> | |
val x = (i - (dim-1)/2).toFloat | |
val y = (j - (dim-1)/2).toFloat | |
(exp(-1 * pow(x/sigma,2)) * exp(-1 * pow(y/sigma,2))).toFloat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate csv; | |
extern crate rustc_serialize; | |
#[derive(RustcDecodable,Debug)] | |
struct Record { | |
id: i32, | |
x: f32, | |
y: f32, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PS = PS || {}; | |
PS.Prelude = (function () { | |
"use strict"; | |
function Show(show) { | |
this.show = show; | |
}; | |
function Num($percent, $times, $plus, $minus, $div, negate) { | |
this["%"] = $percent; | |
this["*"] = $times; | |
this["+"] = $plus; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Mouse | |
main = lift scene v | |
scene : Float -> Element | |
scene v = collage 600 600 (objs v ++ [ | |
toForm <| plainText (show v)]) | |
objs : Float -> [Form] | |
objs factor = map (render factor) <| filter (pred factor) [30,20,10,5] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = lift scene state | |
state = foldp step initial (fps 60) | |
initial = State 0 -70 100 8 0 | |
data State = State Float Float Float Float Float | |
scene (State t x y vx vy) = collage 400 400 [box, ball x y] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.scalajs.js | |
import js.annotation._ | |
package importedjs { | |
package D3 { | |
trait Selectors extends js.Object { | |
def select(selector: js.String): Selection = ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/main/scala/D3/d3.scala 2014-07-03 13:59:52.000000000 -0700 | |
+++ ../scala-js-ts-importer/d3.original.scala 2014-07-03 14:34:04.000000000 -0700 | |
@@ -1,11 +1,10 @@ | |
- | |
-package D3 { | |
- | |
import scala.scalajs.js | |
import js.annotation._ | |
-import org.scalajs.dom._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package D3 { | |
import scala.scalajs.js | |
import js.annotation._ | |
import org.scalajs.dom._ | |
import js._ | |
trait Selectors extends js.Object { | |
def select(selector: js.String): Selection = ??? | |
def select(element: EventTarget): Selection = ??? |
NewerOlder