Skip to content

Instantly share code, notes, and snippets.

View andrewkittredge's full-sized avatar

Andrew Kittredge andrewkittredge

  • Calcbench
  • Boston
View GitHub Profile
@andrewkittredge
andrewkittredge / JoinWithTableExtensions.cs
Last active November 29, 2023 21:18
Join entities with EntityFramework table
#nullable enable
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Linq.Expressions;
using BlazarTech.QueryableValues;
using LinqKit;
using Microsoft.EntityFrameworkCore;
a.merge(b, how="outer", indicator=True, left_index=True, right_index=True)
pd.read_csv(
"djia_sample.csv",
parse_dates=["period_start", "period_end", "date_reported", "date_modified"],
dtype={
"ticker": "string",
"metric": "string",
"CIK": "string",
"filing_type": "string",
"trace_url": "string",
"filing_accession_number": "string",