Skip to content

Instantly share code, notes, and snippets.

@moritzkoerber
Created August 22, 2020 14:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moritzkoerber/a125f39877d19515e9efd5f9e26af864 to your computer and use it in GitHub Desktop.
Save moritzkoerber/a125f39877d19515e9efd5f9e26af864 to your computer and use it in GitHub Desktop.
import pandas as pd
df = pd.DataFrame(
dict(
week=[1, 1, 2, 2, 3, 3] * 2,
layout=["classic", "classic", "modern", "modern"] * 3,
response=["conversion", "exit"] * 6,
cnt=[26, 23, 45, 34, 55, 44, 53, 27, 28, 25, 30, 34],
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment