Blog Migrations

Website
Python
R
Author

Alex Chisholm

Published

May 4, 2024

We’ve migrated to Quarto.

Well, actually we left the old blog in the same spot and just started fresh over here.

Quarto makes it easy for us to discuss Python….


import pandas as pd 

data = {
    'Name': ['Sara', 'Malik', 'Lina', 'Ahmed', 'Maya'],
    'Age': [25, 30, 35, 40, 45],
    'City': ['New York', 'Los Angeles', 'Chicago', 'Houston', 'Boston']
}

df = pd.DataFrame(data)
print(df)
    Name  Age         City
0   Sara   25     New York
1  Malik   30  Los Angeles
2   Lina   35      Chicago
3  Ahmed   40      Houston
4   Maya   45       Boston

And R

library(tidyverse)

data <- tibble(
  Name = c("Sara", "Malik", "Lina", "Ahmed", "Maya"),
  Age = c(25, 30, 35, 40, 45),
  City = c("New York", "Los Angeles", "Chicago", "Houston", "Boston")
)

data
# A tibble: 5 × 3
  Name    Age City       
  <chr> <dbl> <chr>      
1 Sara     25 New York   
2 Malik    30 Los Angeles
3 Lina     35 Chicago    
4 Ahmed    40 Houston    
5 Maya     45 Boston     

All in the same place!