Steph Hazlitt's Avatar

Steph Hazlitt

@stephhazlitt

data science, OSS, #rstats + 🐍, birds, good β˜•οΈ πŸ‡¨πŸ‡¦ 🌈 (she/her)

94
Followers
176
Following
4
Posts
17.11.2024
Joined
Posts Following

Latest posts by Steph Hazlitt @stephhazlitt

Post image

Real Canadian average hourly earnings continued to grow on a 12-month basis in August, according to the LFS. #cndecon

18.09.2025 15:02 πŸ‘ 3 πŸ” 2 πŸ’¬ 0 πŸ“Œ 1
# unz() lets you connect to a .zip and treat it like a mini file system, 
# and you can load files from inside it
one_zipped_csv_among_others <- readr::read_csv(
  unz("lotsa_zipped_csvs.zip"), "one_csv.csv"
)

# readr::read_csv() can read a .zip with a single CSV in it
one_zipped_csv <- readr::read_csv("big_zipped_file.zip")

# unz() lets you connect to a .zip and treat it like a mini file system, # and you can load files from inside it one_zipped_csv_among_others <- readr::read_csv( unz("lotsa_zipped_csvs.zip"), "one_csv.csv" ) # readr::read_csv() can read a .zip with a single CSV in it one_zipped_csv <- readr::read_csv("big_zipped_file.zip")

Thing I just learned in #rstats: unz() lets you connect to a .zip and load files from inside it without actually unzipping it (great for a file I'm working with that's 30 MB zipped and 1+ GB unzipped, with multiple CSVs in it)

18.04.2025 18:19 πŸ‘ 232 πŸ” 46 πŸ’¬ 10 πŸ“Œ 3
Preview
Bruce Arthur: Trump administration is Canada’s enemy, even if Alberta’s premier sees it as a friend Danielle Smith might argue that the United States is not the biggest threat to Canada’s existence in its recent history, but the rest of us must have a clearer view

"Let’s state this plainly: a sitting Canadian premier says she asked our enemy... to alter policy in order to help elect a... candidate who is better aligned with that enemy of the country."

I'm with Bruce: illegal or not, we can't treat this as politics-as-usual.

www.thestar.com/politics/pol...

25.03.2025 01:00 πŸ‘ 283 πŸ” 124 πŸ’¬ 4 πŸ“Œ 7
Preview
Did Danielle Smith lobby the U.S. to help Pierre Poilievre? Sure looks like it An interview with Breitbart reveals some troubling partisan actions taken by the Alberta Premier
24.03.2025 20:35 πŸ‘ 113 πŸ” 56 πŸ’¬ 26 πŸ“Œ 11
Post image

The Liberal number just keeps going higher πŸ˜΅β€πŸ’« πŸ‡¨πŸ‡¦
www.economist.com/interactive/...

18.03.2025 18:55 πŸ‘ 72 πŸ” 9 πŸ’¬ 3 πŸ“Œ 2
Post image

The step-by-step demolition of the US statistical system continues.

13.03.2025 16:35 πŸ‘ 4 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

ABC News pulled all 538 content from their official website.

I made a backup of the `data` repo. I suggest if you need 538 stuff grab it while you can ASAP:

https://github.com/orgs/fivethirtyeight/repositories

08.03.2025 17:32 πŸ‘ 4 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0
Post image

Please tap the image to read better. Every morning, Monday to Friday, I write and share one of these gentle reminders on my Purrtreon.πŸˆβ€β¬›πŸ€

08.03.2025 17:55 πŸ‘ 611 πŸ” 108 πŸ’¬ 8 πŸ“Œ 0
Preview
β€˜We are not the 51st anything’: viral Canada ad gets Trump-inspired update Remake of 2000 Molson beer ad has the same message as Trump threatens tariffs: Canada will not cower to the US

Β πŸ‡¨πŸ‡¦

06.03.2025 16:29 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

(1/3) It needs repeating: in 1994, Ukraine was persuaded to give up its nuclear weapons to Russia in return for the US, the UK, and Russia guaranteeing Ukraine’s sovereignty, security, and territorial integrity.

04.03.2025 17:57 πŸ‘ 76004 πŸ” 22675 πŸ’¬ 1763 πŸ“Œ 971
Post image

From Bulgaria’s best cartoonist, Christo Komarnitski

01.03.2025 00:33 πŸ‘ 1723 πŸ” 588 πŸ’¬ 20 πŸ“Œ 22
Preview
It Was an Ambush Today marked one of the grimmest days in the history of American diplomacy.

"One of the Grimmest Days in American Diplomacy" β€” yep

Gift link: https://www.theatlantic.com/ideas/archive/2025/02/ukraine-us-relations-trump/681880/?gift=SkZXWJCESUtVthsYJQBBHxJN-2qfZCyWI_TKprIJWbY&utm_source=copy-link&utm_medium=social&utm_campaign=share

28.02.2025 22:38 πŸ‘ 3 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
Ukraine flag

Ukraine flag

01.03.2025 07:40 πŸ‘ 9928 πŸ” 1188 πŸ’¬ 136 πŸ“Œ 21
A tiny trump figure in a chair next to a towering Zelensky captures the puny spirit of Trump's cowardice and Russian capitulation.

A tiny trump figure in a chair next to a towering Zelensky captures the puny spirit of Trump's cowardice and Russian capitulation.

Clay Bennett nails it.

28.02.2025 23:53 πŸ‘ 8691 πŸ” 2262 πŸ’¬ 74 πŸ“Œ 61
Post image

πŸ’™πŸ’›

28.02.2025 20:49 πŸ‘ 117 πŸ” 13 πŸ’¬ 1 πŸ“Œ 0

Please enjoy my last ever post at Climate.gov/ENSO Blog. This afternoon I was fired by the Trump Administration 15 days before my 2yr probationary period ended on March 13.
I have worked at NOAA since 2010, and I'm so incredibly proud of the work I did. If anyone wants a quote, let me know.

27.02.2025 23:22 πŸ‘ 4705 πŸ” 1604 πŸ’¬ 265 πŸ“Œ 60
Preview
Tesla's market cap sinks below $1 trillion as stock slumps more than 8% Tesla shares have dropped dramatically since peaking in December, and Tuesday's decline pushed the company's market cap below $1 trillion.

Tesla stock is down 25% so far this year after dipping 8% yesterday. It's become humiliating to drive a Tesla in LA, and he's getting his ass kicked by China. I love this journey for Elon because there's still so much lower the stock can go. I believe in us!
www.cnbc.com/2025/02/25/t...

26.02.2025 22:54 πŸ‘ 1425 πŸ” 218 πŸ’¬ 59 πŸ“Œ 20

The headline that 21 DOGE staffers have resigned is a little misleading. These were employees of the United States Digital Service, which existed pre-administration and was absorbed into Musk’s team. These aren’t the young idiots; these are actual civil servants.

25.02.2025 18:14 πŸ‘ 6667 πŸ” 1436 πŸ’¬ 86 πŸ“Œ 53
Scatter plot of bill depth vs. length by species (color) and sex (symbol). It shows positive correlations for all species with males tending to have bigger bills than females.

sym <- c(1, 16)
pal <- c("darkorange","purple","cyan4")
plot(bill_dep ~ bill_len, data = penguins, pch = sym[sex], col = pal[species])

Scatter plot of bill depth vs. length by species (color) and sex (symbol). It shows positive correlations for all species with males tending to have bigger bills than females. sym <- c(1, 16) pal <- c("darkorange","purple","cyan4") plot(bill_dep ~ bill_len, data = penguins, pch = sym[sex], col = pal[species])

🚨 The "penguins" data is coming to the base #rstats{datasets} in 4.5.0!

@ellakaye.co.uk & @HeathrTurnr.fosstodon.org.ap.brid.gy r prepared an adapted and a raw version of the data set based on the {palmerpenguins} πŸ“¦ by @allisonhorst.bsky.social @apreshill.com and Kristen Gorman.

πŸ“ˆ Scatter plot:

24.02.2025 13:48 πŸ‘ 119 πŸ” 35 πŸ’¬ 6 πŸ“Œ 10
Preview
Air, an extremely fast R formatter We are thrilled to announce Air, a new R formatter.

@lionelhenry.bsky.social and I are so excited to finally announce Air - an extremely fast R code formatter! πŸŽ‰

With Air, you'll never need to worry about styling your #rstats code ever again. All you need to do is save, and Air takes care of the rest.

www.tidyverse.org/blog/2025/02...

21.02.2025 15:10 πŸ‘ 362 πŸ” 121 πŸ’¬ 20 πŸ“Œ 20
Post image Post image

StatCan reported today that new house prices dropped a slight 0.1% in January. Two days ago the Canadian Real Estate Association said existing house prices also declined marginally. Overall, house prices have been quite stable for the last twelve months or so. #cdnecon

20.02.2025 14:24 πŸ‘ 3 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0
Post image

No notes

20.02.2025 14:58 πŸ‘ 36039 πŸ” 7827 πŸ’¬ 734 πŸ“Œ 299

I really liked this idea of using a histogram as a legend in a choropleth map (since land isn't unemployed; people are), so I made a little guide to doing it with #rstats, {ggplot2}, and {patchwork}

www.andrewheiss.com/blog/2025/02...

19.02.2025 17:58 πŸ‘ 865 πŸ” 192 πŸ’¬ 27 πŸ“Œ 23

I won’t stop posting this.

13.02.2025 03:23 πŸ‘ 3870 πŸ” 1529 πŸ’¬ 62 πŸ“Œ 37

Dear @pbsnews.bsky.social when a fascist is threatening an invasion and annexation of a sovereign nation you in fact do not have to respond by explaining how it would work

WTF is β€œHere’s what it would take to transform Canada from a nation to a state”?

13.02.2025 23:48 πŸ‘ 98 πŸ” 20 πŸ’¬ 4 πŸ“Œ 1
Preview
nanoparquet 0.4.0 - Tidyverse nanoparquet 0.4.0 comes with a new and much faster `read_parquet()`, configurable type mappings in `write_parquet()`, and a new `append_parquet()`.

nanoparquet 0.4.1 is out. Reads and writes Parquet files. Comes with a completely rewritten and surprisingly speedy `read_parquet()`, ability to read a subset of columns, `append_parquet()` which does _not_ rewrite the whole file, and lots more: www.tidyverse.org/blog/2025/01...
#rstats #parquet

11.02.2025 15:27 πŸ‘ 81 πŸ” 21 πŸ’¬ 3 πŸ“Œ 1
Preview
Don’t Buy a Tesla. Sell Your Tesla. Refuse a Tesla at the Rental Counter. Yesβ€”It Will Help. Elon Musk’s car company is in a precarious spot.

Tesla's stock is ridiculously overvalued, and even a modest consumer boycott could tank the company, which accounts for the majority of Elon Musk's wealth.
The divestment movement weakened apartheid South Africa. Let's do that again. slate.com/business/202...

12.02.2025 13:42 πŸ‘ 10256 πŸ” 3672 πŸ’¬ 230 πŸ“Œ 191
Preview
Gulf of Mexico - Wikipedia

Go to Google
Search "Gulf of Mexico"
Click the 3 little dots next to "Gulf of Mexico (Gulf of America)"
Choose "Send feedback"
Click "Gulf of America"
Click "Inaccurate content"
Click "Incorrect"
Tell Google the correct name
en.wikipedia.org/wiki/Gulf_of...

12.02.2025 13:04 πŸ‘ 16668 πŸ” 5504 πŸ’¬ 1997 πŸ“Œ 721

This is all gold and worth a serious read by scientists trying to communicate the value of what we do.

08.02.2025 19:20 πŸ‘ 9 πŸ” 3 πŸ’¬ 0 πŸ“Œ 0