MarsjaSe Profile Banner
Marsja.se Profile
Marsja.se

@MarsjaSe

Followers
688
Following
218
Media
124
Statuses
3K

Blogging about #Python and #RStats. Interested in data analysis, data visualization, among other things. Join the Telegram channel: https://t.co/vrbd6320QK

Joined December 2019
Don't wanna be here? Send us removal request.
@MarsjaSe
Marsja.se
11 months
When you realize data.table is not just fast… but also lets you: - filter like a ninja - group like a boss - update in place like magic - chain like you're riding 🚲 downhill And all with [i, j, by]. Name a tidier feeling. I’ll wait. #rstats #datatable
0
0
0
@MarsjaSe
Marsja.se
11 months
I mapped the exact spot where the USAID nutrition pack was photographed. You’ll see the coordinates, the map, and how I did it in Python. This isn’t just about one photo — it’s about transparency. 📍 Full post & map here →
1
0
0
@MarsjaSe
Marsja.se
11 months
This isn’t a conspiracy theory. There’s evidence. The USAID label is clear, the location is real, and the metadata doesn’t lie. It makes you wonder: Is this how USAID support is supposed to be used? Or is something weird going on? 👇
1
0
0
@MarsjaSe
Marsja.se
11 months
I took a photo of a USAID nutrition pack. Nothing weird… until I looked closer. The image had hidden GPS data. Using Python, I pulled the coordinates and put a pin on the map. What I found was… strange. Should foreign aid be ending up here? 👇
1
0
0
@MarsjaSe
Marsja.se
11 months
I broke down how to extract location data from any image — and revealed the exact location of this USAID pack. 🧭 Want to see where it was taken? 📍Check the map + story here: https://t.co/w3QOUD0OTo Should it be there? Let me know! 3/3
marsja.se
We used Python to uncover where a USAID nutrition pack ended up—learn how to extract GPS data from photos and map it step-by-step.
0
0
0
@MarsjaSe
Marsja.se
11 months
What I saw made me stop. It might provide some evidence and serious questions about how foreign aid is used — and where it ends up. 2/2
1
0
0
@MarsjaSe
Marsja.se
11 months
I found a USAID nutrition pack lying around and took a photo — just out of curiosity. Later, I checked the image’s metadata… It turns out that GPS coordinates were embedded in it. 👀 So I mapped it. See below for the location! 1/3
1
1
1
@MarsjaSe
Marsja.se
11 months
3️⃣ Select columns using %in% Dynamically choose which columns to sum: rKopieraRedigeracols_to_sum <- c("var1", "var2") DT[, total := rowSums(.SD), .SDcols = names(DT) %in% cols_to_sum]
1
0
0
@MarsjaSe
Marsja.se
11 months
2️⃣ Sum by group Group your rows and get column sums per group: RedigeraDT[, lapply(.SD, sum), by = group, .SDcols = c("x", "y", "z")]
1
0
0
@MarsjaSe
Marsja.se
11 months
Working with wide data? Want to sum several columns quickly — with or without grouping? Here’s how to do it cleanly using data.table in #RStats: 👇
1
1
1
@MarsjaSe
Marsja.se
11 months
To find out, we ran a benchmark comparing dplyr::filter() vs data.table on a 20-million-row dataset. We filtered rows where a > 0.5 and recorded the execution time. 🚀 Here's what happened...
1
0
0
@MarsjaSe
Marsja.se
11 months
Why does data.table stand out? It's built for speed. But how much faster is it really? 🤔
1
0
0
@MarsjaSe
Marsja.se
11 months
We’ve already covered how to select columns in data.table. Now, let’s have a look at filtering rows.
1
0
0
@MarsjaSe
Marsja.se
11 months
Filtering large datasets in R? You might be using dplyr::filter(), but there's a faster way. 🚀 Let's compare dplyr and data.table for big data filtering. 👇 #rstats #DataScience
1
1
2