Skip to content

Instantly share code, notes, and snippets.

@chrisgorgo
chrisgorgo / namedtuple_pandas1.py
Last active September 8, 2021 16:21
NamedTuple + pandas
import pandas as pd
from collections import namedtuple
class Employee(NamedTuple):
name: str
id: int
employees = []
next_employee = some_api_query("first")
while next_employee:
@chrisgorgo
chrisgorgo / namedtuple_pandas.py
Last active November 9, 2020 17:31
namedtuple + pandas
import pandas as pd
from collections import namedtuple
Employee = namedtuple("Employee", "name, id")
employees = []
next_employee = some_api_query("first")
while next_employee:
employees.append(Employee(name=next_employee.first_name + " " + next_employee.last_name,
id=next_employee.id))

Dataset Metadata

The following table is necessary for this dataset to be indexed by search engines such as Google Dataset Search.

property value
## Dataset Metadata
The following table is necessary for this dataset to be indexed by search
engines such as <a href="https://g.co/datasetsearch">Google Dataset Search</a>.
<div itemscope itemtype="http://schema.org/Dataset">
<table>
<tr>
<th>property</th>
<th>value</th>
</tr>
<tr>
@chrisgorgo
chrisgorgo / basic_dataset_description
Last active July 15, 2019 02:20
Schema.org Dataset tags in Markdown
## Dataset Metadata
The following table is necessary for this dataset to be indexed by search
engines such as <a href="https://g.co/datasetsearch">Google Dataset Search</a>.
<div itemscope itemtype="http://schema.org/Dataset">
<table>
<tr>
<th>property</th>
<th>value</th>
</tr>
<tr>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrisgorgo
chrisgorgo / comparing motion parameters.ipynb
Created April 12, 2018 17:50
NIPY motion correction comparison
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.