Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
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 pandas as pd | |
import numpy as np | |
import multiprocessing | |
from functools import partial | |
def _df_split(tup_arg, **kwargs): | |
split_ind, df_split, df_f_name = tup_arg | |
return (split_ind, getattr(df_split, df_f_name)(**kwargs)) | |
def df_multi_core(df, df_f_name, subset=None, njobs=-1, **kwargs): |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using ICSharpCode.SharpZipLib.BZip2; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Table; | |
using Newtonsoft.Json; | |
namespace Data.Entities |
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 id = 1; | |
using (var db = new entityContext()) | |
{ | |
// Select entity | |
var entity = db.dbset.FirstOrDefault(e => e.ID == id); | |
if (entity != null) | |
{ | |
// Remove Entity | |
db.dbset.Remove(entity); | |
db.SaveChanges(); |