Skip to content

Instantly share code, notes, and snippets.

View wesm's full-sized avatar

Wes McKinney wesm

View GitHub Profile
@wesm
wesm / wesm_blog-2026-01-17.html
Created January 17, 2026 16:08
Agent session: wesm_blog - I want to beautify the presentations page to use a similar card aesthetic to the talks/presentations
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>wesm_blog - Agent Session</title>
<style>
:root {
--bg: #0d1117;
--surface: #161b22;
@wesm
wesm / positron-2025-12-18.html
Created January 17, 2026 15:17
Agent session: positron - I would like you to review all of the Julia unit tests in extensions/positron-julia for correctness
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>positron - Agent Session</title>
<style>
:root {
--bg: #0d1117;
--surface: #161b22;
@wesm
wesm / agent_session_viewer-2026-01-17.html
Created January 17, 2026 15:14
Agent session: agent_session_viewer - there isn't a good way in this tool to export a single transcript in a format that I can share with
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>agent_session_viewer - Agent Session</title>
<style>
:root {
--bg: #0d1117;
--surface: #161b22;
@wesm
wesm / benn_stancil-2026-01-16.html
Created January 17, 2026 15:08
Agent session: benn_stancil - I really like Benn Stancil's substack https://benn.substack.com -- I have been reading it for years.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>benn_stancil - Agent Session</title>
<style>
:root {
--bg: #0d1117;
--surface: #161b22;
@wesm
wesm / CInterfaceExample.ipynb
Created April 2, 2020 01:23
Example of round-tripping Arrow data through the new C ABI/Interface
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wesm
wesm / AfterArrow3246.ipynb
Created August 15, 2019 16:10
ARROW-3246 Benchmarks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
+ export ARROW_BUILD_TOOLCHAIN=/opt/conda
+ ARROW_BUILD_TOOLCHAIN=/opt/conda
+ mkdir -p /build/lint
+ pushd /build/lint
/build/lint /
+ cmake -GNinja -DARROW_FLIGHT=ON -DARROW_GANDIVA=ON -DARROW_PARQUET=ON -DARROW_PYTHON=ON -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON /arrow/cpp
-- Building using CMake version: 3.13.2
-- Arrow version: 0.13.0 (full: '0.13.0-SNAPSHOT')
-- clang-tidy found at /usr/bin/clang-tidy-7
-- clang-format found at /usr/bin/clang-format-7
/home/wesm/code/arrow/cpp/src/parquet/arrow/reader.h:133: warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
/home/wesm/code/arrow/cpp/src/parquet/arrow/reader.h:151: warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
/home/wesm/code/arrow/cpp/src/parquet/arrow/reader.h:244: warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
/home/wesm/code/arrow/cpp/src/parquet/arrow/reader.h:282: warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
/home/wesm/code/arrow/cpp/src/arrow/status.h:373: warning: documented symbol `Status arrow::Status::operator &' was not declared or defined.
/home/wesm/code/arrow/cpp/src/arrow/status.h:381: warning: documented symbol `Status arrow::Status::operator &' was not declared or defined.
/home/wesm/code/arrow/cpp/src/arrow/status.h:389: warning:
gandiva.dll!llvm::Value::setNameImpl(class llvm::Twine const &) C++
gandiva.dll!llvm::Value::setName(class llvm::Twine const &) C++
> [Inline Frame] gandiva.dll!llvm::ExtractValueInst::{ctor}(llvm::Value *) Line 2418 C++
[Inline Frame] gandiva.dll!llvm::ExtractValueInst::Create(llvm::Value *) Line 2356 C++
gandiva.dll!llvm::IRBuilder<llvm::ConstantFolder,llvm::IRBuilderDefaultInserter>::CreateExtractValue(llvm::Value * Agg, llvm::ArrayRef<unsigned int> Idxs, const llvm::Twine & Name) Line 1760 C++
gandiva.dll!gandiva::DecimalIR::ValueSplit::MakeFromStruct(gandiva::DecimalIR * decimal_ir, llvm::Value * dstruct) Line 355 C++
gandiva.dll!gandiva::DecimalIR::AddLarge(const gandiva::DecimalIR::ValueFull & x, const gandiva::DecimalIR::ValueFull & y, const gandiva::DecimalIR::ValueFull & out) Line 243 C++
[External Code]
[Inline Frame] gandiva.dll!std::_Func_class<llvm::Value *>::operator()() Line 279 C++
gandiva.dll!gandiva::FunctionIRBuilder::BuildIfElse(llvm::Value * condition, llvm::Type * ret
In [1]: paste
import pandas as pd
import feather
data = {'date': ['2014-05-01 18:47:05.069722', '2014-05-01 18:47:05.119994',
'2014-05-02 18:47:05.178768', '2014-05-02 18:47:05.230071',
'2014-05-02 18:47:05.230071', '2014-05-02 18:47:05.280592']}
df = pd.DataFrame(data, columns = ['date'])
df['date'] = pd.to_datetime(df['date']).dt.date