The leader of the FDP, the liberal party, here in Bremen has suggested banning non-EU citizens from attending or organising demonstrations in order to cut down on “imported” extremism. Let’s be clear here, he isn’t talking about non-EU citizens like me, he’s talking about brown people. Because there is a trend within German mainstream politics that extremism, and especially antisemitic extremism, is an imported thing. Germany, after all, dealt with all this following the second world war. They even built a monument to it in Berlin.
This annoyed me.
So I decided to grab a list of terrorist attacks in Germany in order to see exactly where the violent extremism that is tearing Germany apart comes from. I hit up wikipedia and downloaded the tables from this page and then took all the years from 2000 to present and combined them into a single file. I want to make a map of all the terror attacks since the year 2000 so as to be able to visualise the attacks, so I used a small python script to calculate the coordinates for each town/city with a terrorist attack.
Click here to skip the nerdy bits
import pandas as pd
from geopy.geocoders import Nominatim
from pyproj import Transformer
# Load the CSV file
df = pd.read_csv('combined.csv')
# Initialize the geolocator
geolocator = Nominatim(user_agent="geoapiExercises")
# Initialize a transformer to convert to EPSG:3857 (ESRI:102100)
transformer = Transformer.from_crs("epsg:4326", "epsg:3857")
# Create two empty columns for X and Y coordinates
df['X'] = None
df['Y'] = None
# Function to get coordinates and transform them
def get_coordinates(town):
try:
# Get the location of the town
location = geolocator.geocode(town + ', Germany')
if location:
# Convert latitude and longitude to EPSG:3857
x, y = transformer.transform(location.latitude, location.longitude)
return x, y
else:
return None, None
except:
return None, None
# Iterate through the towns/cities in the 'Ort' column and get coordinates
for i, town in df['Ort'].items():
x, y = get_coordinates(town)
df.at[i, 'X'] = x
df.at[i, 'Y'] = y
# Save the updated dataframe to a new CSV
df.to_csv('combined_with_coordinates.csv', index=False)
print("Coordinates added and saved to combined_with_coordinates.csv")
The I added a new column called ‘Ideology’ and went through each entry and input ‘left’, ‘right’, or ‘islamist’ where the ideology of the attacker was clear. I then filtered the file to remove all rows with no value in the Ideology column.
csvgrep -c "ideology" -r ".+" combined_with_coordinates.csv > filtered.csv
This left me with 184 incidents since the year 2000.
Next was a tad more difficult. Many of the incidents labelled here as terror attacks are not what I would refer to as terrorism. Violence, yes, but not terrorism. So I want to here to differentiate between terrorism, political violence, and racist/antisemitic violence.
Terrorism is, for my purposes here, the use of violence to instill terror in a given population/group in order to create political or cultural/political change. So I will not be counting property destruction, individual racist attacks or political assassination. Violent these things may be, but their aim is not to instill terror in a population. I will however be including the murders carried out by the National Socialist Underground, as the purpose of those murders was to create terror within immigrant communities.
So, after going through and somewhat arbitrarily removing rows where the attack doesn’t meet my definition of terrorism I am left with 142 incidents. I will link to my data at the bottom of this piece.
Next I put together a Shiny app using R and upload it to shinyapps.io.
output$line_chart <- renderPlot({
# Create a vector of German month names
german_months <- c("Januar", "Februar", "März", "April", "Mai", "Juni",
"Juli", "August", "September", "Oktober", "November", "Dezember")
# Replace German month names with numerical equivalents in the date strings
for (i in seq_along(german_months)) {
terror$Datum.Beginn <- gsub(german_months[i], sprintf("%02d", i), terror$Datum.Beginn)
}
# Parse the date using lubridate, assuming the format is "dd mm yyyy"
terror$Datum.Beginn <- dmy(terror$Datum.Beginn)
terror$Year <- format(terror$Datum.Beginn, "%Y")
# Process data for line chart: group by year and ideology, and count the attacks
year_ideology_counts <- terror %>%
group_by(Year, Ideology) %>%
summarise(Count = n(), .groups = 'drop') %>%
filter(as.numeric(Year) >= 2000) # Filter data from the year 2000
ggplot(year_ideology_counts, aes(x = Year, y = Count, color = Ideology, group = Ideology)) +
geom_line(size = 1.2) +
geom_point(size = 3) + # Slightly larger points
scale_color_manual(values = c("left" = "red", "right" = "#8B4513", "islamist" = "black")) +
# Apply grey background and style the text with a black frame
theme(
panel.background = element_rect(fill = "white", color = NA), # White background inside the plot
plot.background = element_rect(fill = "white", color = NA), # White background around the plot
panel.border = element_rect(color = "black", fill = NA, size = 1.5), # Black border/frame
legend.position = "none", # Remove the legend
axis.text = element_text(size = 14, face = "bold"), # Larger and bold axis text
axis.title = element_text(size = 16, face = "bold"), # Larger and bold axis titles
plot.title = element_text(size = 18, face = "bold") # Larger and bold plot title
) +
labs(x = "Year", y = "Number of Attacks", title = "")
})
And if that all works, you should see an interactive map of Germany with all the terrorist attacks since the year 2000 which you can filter by right wing, left wing, or islamist. Then you should ask yourself, why the FDP want to ban foreigners from attending demonstrations and where the extremism is coming from…
Ta Da!