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
def normalize(df): | |
""" | |
Function for min-max Scaling a pandas DataFrame | |
@param: | |
Takes a pandas DataFrame: df | |
Returns: a normalized DataFrame | |
along with a dict containing rescaling | |
coef which can be used in below function. | |
""" | |
result = df.copy() |
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
<script> | |
$(document).ready(function() { | |
$("#getMessage").on("click", function() { | |
$.getJSON("/json/cats.json", function(json) { | |
var html = ""; | |
// Only change code below this line. | |
json.forEach(function(val) { | |
var keys = Object.keys(val); |