I hereby claim:
- I am juhosa on github.
- I am juhosa (https://keybase.io/juhosa) on keybase.
- I have a public key whose fingerprint is 6873 B262 C0E4 4811 C922 8B1A 7215 C844 EF1E 2AD2
To claim this, I am signing this object:
import { render, screen } from "@testing-library/react"; | |
import { describe, expect, it } from "vitest"; | |
import App from "../App"; | |
import userEvent from "@testing-library/user-event"; | |
describe("testing App component", async () => { | |
it("header is shown", () => { | |
render(<App />); | |
expect(screen.getByText(/empty template/i)).toBeInTheDocument(); | |
}); |
aniso8601==1.3.0 | |
click==6.7 | |
Flask==0.12.2 | |
Flask-RESTful==0.3.6 | |
itsdangerous==0.24 | |
Jinja2==2.10 | |
MarkupSafe==1.0 | |
python-dateutil==2.6.1 | |
pytz==2017.3 | |
six==1.11.0 |
{ | |
"author": { | |
"name": "Juho Salli", | |
"github_username": "juhosa" | |
}, | |
"template": { | |
"version": 1, | |
"name": "flask-restful-example", | |
"description": "Simple example of Neil templates, using Flask-Restful" | |
}, |
from flask import Flask | |
from flask_restful import Resource, Api | |
app = Flask(__name__) | |
api = Api(app) | |
class {{ resource_name }}(Resource): |
# List unique values in a DataFrame column | |
pd.unique(df.column_name.ravel()) | |
# Convert Series datatype to numeric, getting rid of any non-numeric values | |
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True) | |
# Grab DataFrame rows where column has certain values | |
valuelist = ['value1', 'value2', 'value3'] | |
df = df[df.column.isin(valuelist)] |
I hereby claim:
To claim this, I am signing this object: