Commit 316c8c2b authored by Jonathan Poalses's avatar Jonathan Poalses

Initial commit

parents
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JupyterPersistentConnectionParameters">
<option name="moduleParameters">
<map>
<entry key="$PROJECT_DIR$/.idea/machine.iml">
<value>
<JupyterConnectionParameters>
<option name="managed" value="true" />
</JupyterConnectionParameters>
</value>
</entry>
</map>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (machine)" project-jdk-type="Python SDK" />
<component name="PyCharmDSProjectLayout">
<option name="id" value="JupyterRightHiddenStructureLayout" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/machine.iml" filepath="$PROJECT_DIR$/.idea/machine.iml" />
</modules>
</component>
</project>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
# This is a sample Python script.
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint.
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print_hi('PyCharm')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
{
"cells": [
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2023-05-18T01:19:48.360879Z",
"start_time": "2023-05-18T01:19:48.356253Z"
}
},
"outputs": [
{
"data": {
"text/plain": "'#{1 2 3}'"
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import edn_format as edn\n",
"edn.dumps({1, 2, 3})"
]
},
{
"cell_type": "code",
"execution_count": 18,
"outputs": [
{
"data": {
"text/plain": "[1, True, None]"
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"edn.loads(\"[1 true nil]\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:19:48.372717Z",
"start_time": "2023-05-18T01:19:48.362765Z"
}
}
},
{
"cell_type": "code",
"execution_count": 19,
"outputs": [
{
"data": {
"text/plain": "(\"It isn't all bad I must say, I got to learn words like dinkum. What's interesting about dinkum is it first appeared in australia, but it's sometimes used in england too!\",\n \"I just had a lovely stretch, it's around 6am right now. Those didn't have anything to do with each other, I just thought I'd mention it.\",\n \"I'm currently on episode seventeen of the fifth season.\",\n \"I'll probably write stuff about that in the actual dissertation, so if you're bored and snooping at what I used as the samples then you already know all this.\\n Unless I forgot. In which case, sorry about that.\",\n \"Omg, I'm like, so sorry. I didn't consider if whoever is reading this thinks making a robot girlfriend is actually rad! They may think it's super rad!\",\n 'Hello, this is a normal, boring sentence',\n \"Willow is onto Dawn, they're figuring out she's trying to bring her mother back.\",\n 'Dude, this is super lame, I suck at writing all american like.',\n \"Oh my bogan day, I've only done ten! This is so boring! I'm just plopping in an aussie word like bogan here and there, it sucks!\",\n \"I'd like to note here that this wee bit of borderline racism is just me making it easier to define as scottish.\",\n \"I'm not going to say what nork means here, but I will say that it's australian, and excellent.\",\n 'I feel like putting on a kilt and going down to the loch. The fookin word was reputation!',\n \"I don't know why I thought making up all my own sentences was a good idea. This is going to be a lot of work\",\n 'I put some salt on it, which is an incredibly basic wee bit of seasoning...',\n \"I haven't had haggis in a while, I've been having lots of ramen though.\",\n \"Although I do like to write things. I'm even considering writing a book. By considering I mean planning.\",\n \"Why do they have to do that, when I see people sad it makes me sad, I want to enjoy my viewing experience.\\n Also it's time for a different dialect now I suppose. I think I'll do american first, channel my inner valley girl.\",\n \"Accents are fookin hard! Especially when they're written and not fooken spoken like they should be.\",\n \"This isn't so bad. I imagine that things will be harder when I'm trying to write in other dialects.\",\n 'Oh no! The loser dude that made the Buffy-bot made her a slaying Buffy-bot!',\n \"This is why I put this off for so long, it's mind-numbingly boring.\",\n \"Ok now he's jumping around and shaking a gourd like a heckin loser.\",\n 'Oh wait, I have five more standard sample to make, sorry.',\n \"I'm not sure I should be writing all my thoughts out like this, considering I'm planning to make this available to the public.\\n Perhaps it's a bad idea, but I find that it's easier to write my thoughts directly, rather than thinking about it.\\n Such a bother, all that thinking.\",\n 'I had a frozen pizza earlier, not haggis, sadly. It was really nice, wee ham and pineapple.',\n \"I went there after my surgery, when I was basically a bludger. I visited family there, and btw bludger is an australian word for someone who doesn't pull their weight.\",\n 'Boring work.',\n \"Why in the name of haggis, did you pick dialects you daft lad. It's clearly a wee bit harder than if you chose languages.\",\n 'I like the word yakka, it makes me think of appa from avatar legend of aang.',\n 'And yes, fook is me writing fuck with a scottish accent...',\n 'I like blood pudding too, but I prefer haggis.',\n 'Buffy and Dawns mother just died. Naturally Dawn is now planning to resurrect her, the fool.',\n \"I think I'll do scottish next, it's super rad, I'll channel my inner... I don't heckin know, dwarf from lord of the rings?\",\n \"Fuck I'm so mentally worn out, why did I procrastinate so much, I'm such a bludger.\",\n \"I did this to myself, I'm a dummy, a heckin dummy. I'm not even sure what this heckin is now.\",\n \"Willow seems very suspicious. As in she's the suspicious one, not that she's suspicious of Dawn. Suspicious is a dumb word.\\n Why is the form of suspicious the same for both being the suspected and the suspecting.\",\n \"This is like, so super not rad, she's gonna hurt someone or something!\",\n \"And yes, I say that heckin is an american word. Why? Who cares! I say heckin is heckin cool. And it's heckin american.\\n Do recall that my like, super cool idea is for this to be consistent, not accurate, and in that I slay.\",\n \"I've switched from watching the super rad Buffy to watching some brainless youtube.\",\n \"Don't worry dude, I won't spill the coffee, your super cool secret is safe with me. I think you're rad even if you are kinda creepy for it...\",\n \"This really wasn't my best idea, was it, my koala loving bogan reader.\",\n \"No worries, I'm sure it'll come back to me in no time, and you can be sure I'll heckin tell ya about it!\",\n \"Most likely she'll hurt Buffys super rad awesome.. I heckin forgot the word but it means the image other people have for you...\",\n \"I'm using, like, a lot of heckin exclamation marks, aren't I? I think it's just the super rad mindset of writing in this dialect.\",\n 'Specifically, yakka comes from the Yagara indigenous language.',\n \"And yes, I do mean that's it's both hard yakka to write and hard yakka to read.\",\n \"Unless you're also a robot, then it's actually super cool! And you're super cool too!\",\n 'Why did I think that a guy like me could write in such a super awesome manner, with words like heck.',\n 'I hope in the future someone finds a small shred of enjoyment at my ramblings, besides that and borderline-useless artificial intelligence work, it has no other use',\n \"Dawn just reverse resurrected her mother. It's all very sad right now, with tears and sobbing.\",\n 'Or maybe bogans.',\n 'And then you went and spent all your time on mindless benality, with nary a bowl of haggis in sight!',\n \"And then I procrastinate this, my major project, until literal days before it's due, like a dumbass yobbo!\",\n \"I'm sure it seems strange, to be bothered by thinking when I do it so much. Perhaps, however, thinking so much is the issue.\",\n \"I'm currently watching Buffy the Vampire Slayer, it's really good.\",\n 'Yes that haggis mention was just to fulfill the obligatory scottishness... ',\n 'Oh my god man, Spike made a Buffy-bot, what a heckin loser dude.',\n 'Also words like yakka, which comes from aboriginal and means work.',\n 'Holy heckin heckballs! I think writing like this is actually giving me a super duper not rad headache! What the heck!',\n \"It's entirely my own fookin fault laddie, I'm aware.\",\n \"At least I think being called a spoon is bad, it's in my lexicon of mild insults for people who irk me, like yobbos.\",\n \"G'day mates, it's aussie time.\",\n \"It's excellence does not mean you want to be called a nork, for instance spoons are excellent, but being called one is not good.\",\n \"But I digress, I'm finally at the end of this cruel and unusual punishment of my own making, nork that I am.\",\n 'Holy heckin heck dude, writing in this accent is gonna give me brain damage.',\n \"I've never understood it, the desire to think poorly of people you don't know, so what if someones a yobbo? A yobbo is still a person.\",\n \"I'll not here, however, that I'm not strictly adhering to any actual established dialects.\\n What's important is internal consistency, meaning as long as the dialects I write, and the predicates I make for them are consistent with each other and themselves, it will be an effective test.\",\n 'Seriously, I procrastinated my exam prep to like a week and a half before the date like a bogan. And it was pushed back a dinkum week!',\n \"Hi, I'm like, so excited to be like, writing these super rad samples right now.\",\n \"I feel so sorry to whomever is reading this, if someone is, it's a lot of yakka.\",\n 'A simple lexical and grammatical analysis is hardly fookin sufficient. Most of accents are in the way the words are spoken, not the fookin words themselves!',\n \"Look laddie, I don't know what the fook you mean, your inner fookin dwarf.\",\n 'I am however channeling a scot right now, and it feels fookin natural to complain.',\n 'Again, all uses of fookin and mentioning of haggis is entirely coincidental, this is my own made up accent, that simply shares similarities with scottish...',\n 'Not often enough, if you ask me of my wee opinion...',\n 'The robot Buffy was, like, too heckin weird.',\n \"It's clearly going to end poorly. When in all of historical human imagination has bringing the dead back to life ended well?\\n Even a little bit well? It's clearly a recipe for disaster.\",\n \"Ok, writing the american was far easier, I have lot's of exposure from the laddies and lassies on television, but how often do you see a scot on telly?\",\n 'Giles just made a joke, it was like rad man. Super awesome.',\n 'Just typing, no story being told, or point being made, simply words for the sake of words.',\n 'It sounds way too cheesy, even for a wee scot. Not saying all scots are wee. In fact I imagine it sounds cheesy for any scot, wee or not.',\n \"I haven't even started my cyber assignment yet, it's due in less than a week from now, I'm such a nork.\",\n \"I can't believe I have five more fookin samples to make for scottish... It may be a wee number, but I also have twenty five more after that in australian!\",\n 'Australians also use the word yobbo, usually for someone who is drunk, or tends to get drunk.',\n \"It's hard! Writing in odd made-up half-accurate dialects, forcing me to use words like bogan. If you're wondering bogan is like redneck but aussie.\",\n \"I'm also only starting this right now, on the seventeenth, two days before it's due...\",\n \"Seriously, my head is hurting, this super sucks. I'm gonna take some heckin paracetamol now and then resume...\",\n \"Personally I really like haggis, it's delicious...\",\n \"This is now the actual final sample. I think I'll go with american next. Have fun and goodbye, for now. I'll ramble in america next.\",\n \"I'm a terrible student. Or maybe I have undiagnosed ADHD or something along those lines. Or both...\\n I should probably see a doctor about that at some point, but I'm too busy with university work right now.\",\n \"Is this even like, american anymore? It's more like a drunken baby having a heckin good time. Maybe not a heckin baby, but still...\",\n 'Not like Buffy the Vampire Slayer slay, but like, you go girl, kind of slay...',\n \"Yes I realise I gave up on the writing australian pretty quickly and I'm just slipping an aussie word, like dinkum, in here and there.\",\n \"Would a scotsman ever actually say that they're going to put on a kilt and go down to the loch?\",\n \"Honestly I don't have any real prejudices against a group of people, like bogans or yobbos or anything.\",\n \"What the fook, I'm not sounding scottish enough laddies and lassies!\",\n 'You could have had a grand time if you chose languages, not this fankle. But no, you had to choose dialects, you numpty.',\n \"I know that all those haggis lovers don't talk like this, or talk about haggis this much.\",\n \"I've been to australia before, I learnt the word bogan there. I pet a koala too, and saw a guy playing the didgeridoo.\",\n 'Only two more left, yay! This cruel and unusual punishment, which is super not rad, will soon end!')"
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data = edn.loads(open(\"sample_data.txt\").read())\n",
"data"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:19:48.382104Z",
"start_time": "2023-05-18T01:19:48.374098Z"
}
}
},
{
"cell_type": "code",
"execution_count": 20,
"outputs": [
{
"data": {
"text/plain": "('australian',\n 'standard',\n 'standard',\n 'standard',\n 'american',\n 'standard',\n 'standard',\n 'american',\n 'australian',\n 'scottish',\n 'australian',\n 'scottish',\n 'standard',\n 'scottish',\n 'scottish',\n 'standard',\n 'standard',\n 'scottish',\n 'standard',\n 'american',\n 'standard',\n 'american',\n 'standard',\n 'standard',\n 'scottish',\n 'australian',\n 'standard',\n 'scottish',\n 'australian',\n 'scottish',\n 'scottish',\n 'standard',\n 'american',\n 'australian',\n 'american',\n 'standard',\n 'american',\n 'american',\n 'american',\n 'american',\n 'australian',\n 'american',\n 'american',\n 'american',\n 'australian',\n 'australian',\n 'american',\n 'american',\n 'standard',\n 'standard',\n 'australian',\n 'scottish',\n 'australian',\n 'standard',\n 'standard',\n 'scottish',\n 'american',\n 'australian',\n 'american',\n 'scottish',\n 'australian',\n 'australian',\n 'australian',\n 'australian',\n 'american',\n 'australian',\n 'standard',\n 'australian',\n 'american',\n 'australian',\n 'scottish',\n 'scottish',\n 'scottish',\n 'scottish',\n 'scottish',\n 'american',\n 'standard',\n 'scottish',\n 'american',\n 'standard',\n 'scottish',\n 'australian',\n 'scottish',\n 'australian',\n 'australian',\n 'standard',\n 'american',\n 'scottish',\n 'standard',\n 'standard',\n 'american',\n 'american',\n 'australian',\n 'scottish',\n 'australian',\n 'scottish',\n 'scottish',\n 'scottish',\n 'australian',\n 'american')"
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"target = edn.loads(open(\"sample_expected.txt\").read())\n",
"target"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:19:48.403396Z",
"start_time": "2023-05-18T01:19:48.384945Z"
}
}
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
("It isn't all bad I must say, I got to learn words like dinkum. What's interesting about dinkum is it first appeared in australia, but it's sometimes used in england too!" "I just had a lovely stretch, it's around 6am right now. Those didn't have anything to do with each other, I just thought I'd mention it." "I'm currently on episode seventeen of the fifth season." "I'll probably write stuff about that in the actual dissertation, so if you're bored and snooping at what I used as the samples then you already know all this.\n Unless I forgot. In which case, sorry about that." "Omg, I'm like, so sorry. I didn't consider if whoever is reading this thinks making a robot girlfriend is actually rad! They may think it's super rad!" "Hello, this is a normal, boring sentence" "Willow is onto Dawn, they're figuring out she's trying to bring her mother back." "Dude, this is super lame, I suck at writing all american like." "Oh my bogan day, I've only done ten! This is so boring! I'm just plopping in an aussie word like bogan here and there, it sucks!" "I'd like to note here that this wee bit of borderline racism is just me making it easier to define as scottish." "I'm not going to say what nork means here, but I will say that it's australian, and excellent." "I feel like putting on a kilt and going down to the loch. The fookin word was reputation!" "I don't know why I thought making up all my own sentences was a good idea. This is going to be a lot of work" "I put some salt on it, which is an incredibly basic wee bit of seasoning..." "I haven't had haggis in a while, I've been having lots of ramen though." "Although I do like to write things. I'm even considering writing a book. By considering I mean planning." "Why do they have to do that, when I see people sad it makes me sad, I want to enjoy my viewing experience.\n Also it's time for a different dialect now I suppose. I think I'll do american first, channel my inner valley girl." "Accents are fookin hard! Especially when they're written and not fooken spoken like they should be." "This isn't so bad. I imagine that things will be harder when I'm trying to write in other dialects." "Oh no! The loser dude that made the Buffy-bot made her a slaying Buffy-bot!" "This is why I put this off for so long, it's mind-numbingly boring." "Ok now he's jumping around and shaking a gourd like a heckin loser." "Oh wait, I have five more standard sample to make, sorry." "I'm not sure I should be writing all my thoughts out like this, considering I'm planning to make this available to the public.\n Perhaps it's a bad idea, but I find that it's easier to write my thoughts directly, rather than thinking about it.\n Such a bother, all that thinking." "I had a frozen pizza earlier, not haggis, sadly. It was really nice, wee ham and pineapple." "I went there after my surgery, when I was basically a bludger. I visited family there, and btw bludger is an australian word for someone who doesn't pull their weight." "Boring work." "Why in the name of haggis, did you pick dialects you daft lad. It's clearly a wee bit harder than if you chose languages." "I like the word yakka, it makes me think of appa from avatar legend of aang." "And yes, fook is me writing fuck with a scottish accent..." "I like blood pudding too, but I prefer haggis." "Buffy and Dawns mother just died. Naturally Dawn is now planning to resurrect her, the fool." "I think I'll do scottish next, it's super rad, I'll channel my inner... I don't heckin know, dwarf from lord of the rings?" "Fuck I'm so mentally worn out, why did I procrastinate so much, I'm such a bludger." "I did this to myself, I'm a dummy, a heckin dummy. I'm not even sure what this heckin is now." "Willow seems very suspicious. As in she's the suspicious one, not that she's suspicious of Dawn. Suspicious is a dumb word.\n Why is the form of suspicious the same for both being the suspected and the suspecting." "This is like, so super not rad, she's gonna hurt someone or something!" "And yes, I say that heckin is an american word. Why? Who cares! I say heckin is heckin cool. And it's heckin american.\n Do recall that my like, super cool idea is for this to be consistent, not accurate, and in that I slay." "I've switched from watching the super rad Buffy to watching some brainless youtube." "Don't worry dude, I won't spill the coffee, your super cool secret is safe with me. I think you're rad even if you are kinda creepy for it..." "This really wasn't my best idea, was it, my koala loving bogan reader." "No worries, I'm sure it'll come back to me in no time, and you can be sure I'll heckin tell ya about it!" "Most likely she'll hurt Buffys super rad awesome.. I heckin forgot the word but it means the image other people have for you..." "I'm using, like, a lot of heckin exclamation marks, aren't I? I think it's just the super rad mindset of writing in this dialect." "Specifically, yakka comes from the Yagara indigenous language." "And yes, I do mean that's it's both hard yakka to write and hard yakka to read." "Unless you're also a robot, then it's actually super cool! And you're super cool too!" "Why did I think that a guy like me could write in such a super awesome manner, with words like heck." "I hope in the future someone finds a small shred of enjoyment at my ramblings, besides that and borderline-useless artificial intelligence work, it has no other use" "Dawn just reverse resurrected her mother. It's all very sad right now, with tears and sobbing." "Or maybe bogans." "And then you went and spent all your time on mindless benality, with nary a bowl of haggis in sight!" "And then I procrastinate this, my major project, until literal days before it's due, like a dumbass yobbo!" "I'm sure it seems strange, to be bothered by thinking when I do it so much. Perhaps, however, thinking so much is the issue." "I'm currently watching Buffy the Vampire Slayer, it's really good." "Yes that haggis mention was just to fulfill the obligatory scottishness... " "Oh my god man, Spike made a Buffy-bot, what a heckin loser dude." "Also words like yakka, which comes from aboriginal and means work." "Holy heckin heckballs! I think writing like this is actually giving me a super duper not rad headache! What the heck!" "It's entirely my own fookin fault laddie, I'm aware." "At least I think being called a spoon is bad, it's in my lexicon of mild insults for people who irk me, like yobbos." "G'day mates, it's aussie time." "It's excellence does not mean you want to be called a nork, for instance spoons are excellent, but being called one is not good." "But I digress, I'm finally at the end of this cruel and unusual punishment of my own making, nork that I am." "Holy heckin heck dude, writing in this accent is gonna give me brain damage." "I've never understood it, the desire to think poorly of people you don't know, so what if someones a yobbo? A yobbo is still a person." "I'll not here, however, that I'm not strictly adhering to any actual established dialects.\n What's important is internal consistency, meaning as long as the dialects I write, and the predicates I make for them are consistent with each other and themselves, it will be an effective test." "Seriously, I procrastinated my exam prep to like a week and a half before the date like a bogan. And it was pushed back a dinkum week!" "Hi, I'm like, so excited to be like, writing these super rad samples right now." "I feel so sorry to whomever is reading this, if someone is, it's a lot of yakka." "A simple lexical and grammatical analysis is hardly fookin sufficient. Most of accents are in the way the words are spoken, not the fookin words themselves!" "Look laddie, I don't know what the fook you mean, your inner fookin dwarf." "I am however channeling a scot right now, and it feels fookin natural to complain." "Again, all uses of fookin and mentioning of haggis is entirely coincidental, this is my own made up accent, that simply shares similarities with scottish..." "Not often enough, if you ask me of my wee opinion..." "The robot Buffy was, like, too heckin weird." "It's clearly going to end poorly. When in all of historical human imagination has bringing the dead back to life ended well?\n Even a little bit well? It's clearly a recipe for disaster." "Ok, writing the american was far easier, I have lot's of exposure from the laddies and lassies on television, but how often do you see a scot on telly?" "Giles just made a joke, it was like rad man. Super awesome." "Just typing, no story being told, or point being made, simply words for the sake of words." "It sounds way too cheesy, even for a wee scot. Not saying all scots are wee. In fact I imagine it sounds cheesy for any scot, wee or not." "I haven't even started my cyber assignment yet, it's due in less than a week from now, I'm such a nork." "I can't believe I have five more fookin samples to make for scottish... It may be a wee number, but I also have twenty five more after that in australian!" "Australians also use the word yobbo, usually for someone who is drunk, or tends to get drunk." "It's hard! Writing in odd made-up half-accurate dialects, forcing me to use words like bogan. If you're wondering bogan is like redneck but aussie." "I'm also only starting this right now, on the seventeenth, two days before it's due..." "Seriously, my head is hurting, this super sucks. I'm gonna take some heckin paracetamol now and then resume..." "Personally I really like haggis, it's delicious..." "This is now the actual final sample. I think I'll go with american next. Have fun and goodbye, for now. I'll ramble in america next." "I'm a terrible student. Or maybe I have undiagnosed ADHD or something along those lines. Or both...\n I should probably see a doctor about that at some point, but I'm too busy with university work right now." "Is this even like, american anymore? It's more like a drunken baby having a heckin good time. Maybe not a heckin baby, but still..." "Not like Buffy the Vampire Slayer slay, but like, you go girl, kind of slay..." "Yes I realise I gave up on the writing australian pretty quickly and I'm just slipping an aussie word, like dinkum, in here and there." "Would a scotsman ever actually say that they're going to put on a kilt and go down to the loch?" "Honestly I don't have any real prejudices against a group of people, like bogans or yobbos or anything." "What the fook, I'm not sounding scottish enough laddies and lassies!" "You could have had a grand time if you chose languages, not this fankle. But no, you had to choose dialects, you numpty." "I know that all those haggis lovers don't talk like this, or talk about haggis this much." "I've been to australia before, I learnt the word bogan there. I pet a koala too, and saw a guy playing the didgeridoo." "Only two more left, yay! This cruel and unusual punishment, which is super not rad, will soon end!")
\ No newline at end of file
("australian" "standard" "standard" "standard" "american" "standard" "standard" "american" "australian" "scottish" "australian" "scottish" "standard" "scottish" "scottish" "standard" "standard" "scottish" "standard" "american" "standard" "american" "standard" "standard" "scottish" "australian" "standard" "scottish" "australian" "scottish" "scottish" "standard" "american" "australian" "american" "standard" "american" "american" "american" "american" "australian" "american" "american" "american" "australian" "australian" "american" "american" "standard" "standard" "australian" "scottish" "australian" "standard" "standard" "scottish" "american" "australian" "american" "scottish" "australian" "australian" "australian" "australian" "american" "australian" "standard" "australian" "american" "australian" "scottish" "scottish" "scottish" "scottish" "scottish" "american" "standard" "scottish" "american" "standard" "scottish" "australian" "scottish" "australian" "australian" "standard" "american" "scottish" "standard" "standard" "american" "american" "australian" "scottish" "australian" "scottish" "scottish" "scottish" "australian" "american")
\ No newline at end of file
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.106873Z",
"start_time": "2023-05-18T01:11:31.103032Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello World!\n"
]
}
],
"source": [
"print(\"Hello World!\")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"outputs": [],
"source": [
"%matplotlib inline\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"sns.set(style=\"darkgrid\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.153419Z",
"start_time": "2023-05-18T01:11:31.107554Z"
}
}
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [],
"source": [
"df = pd.read_csv(\"fortune500.csv\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.177852Z",
"start_time": "2023-05-18T01:11:31.156199Z"
}
}
},
{
"cell_type": "code",
"execution_count": 4,
"outputs": [
{
"data": {
"text/plain": " Year Rank Company Revenue (in millions) Profit (in millions)\n0 1955 1 General Motors 9823.5 806\n1 1955 2 Exxon Mobil 5661.4 584.8\n2 1955 3 U.S. Steel 3250.4 195.4\n3 1955 4 General Electric 2959.1 212.6\n4 1955 5 Esmark 2510.8 19.1",
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>Year</th>\n <th>Rank</th>\n <th>Company</th>\n <th>Revenue (in millions)</th>\n <th>Profit (in millions)</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>1955</td>\n <td>1</td>\n <td>General Motors</td>\n <td>9823.5</td>\n <td>806</td>\n </tr>\n <tr>\n <th>1</th>\n <td>1955</td>\n <td>2</td>\n <td>Exxon Mobil</td>\n <td>5661.4</td>\n <td>584.8</td>\n </tr>\n <tr>\n <th>2</th>\n <td>1955</td>\n <td>3</td>\n <td>U.S. Steel</td>\n <td>3250.4</td>\n <td>195.4</td>\n </tr>\n <tr>\n <th>3</th>\n <td>1955</td>\n <td>4</td>\n <td>General Electric</td>\n <td>2959.1</td>\n <td>212.6</td>\n </tr>\n <tr>\n <th>4</th>\n <td>1955</td>\n <td>5</td>\n <td>Esmark</td>\n <td>2510.8</td>\n <td>19.1</td>\n </tr>\n </tbody>\n</table>\n</div>"
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.head()"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.193904Z",
"start_time": "2023-05-18T01:11:31.181552Z"
}
}
},
{
"cell_type": "code",
"execution_count": 5,
"outputs": [
{
"data": {
"text/plain": "25500"
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(df)"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.195350Z",
"start_time": "2023-05-18T01:11:31.193411Z"
}
}
},
{
"cell_type": "code",
"execution_count": 6,
"outputs": [
{
"data": {
"text/plain": " Year Rank Company Revenue (in millions) \\\n25495 2005 496 Wm. Wrigley Jr. 3648.6 \n25496 2005 497 Peabody Energy 3631.6 \n25497 2005 498 Wendy's International 3630.4 \n25498 2005 499 Kindred Healthcare 3616.6 \n25499 2005 500 Cincinnati Financial 3614.0 \n\n Profit (in millions) \n25495 493 \n25496 175.4 \n25497 57.8 \n25498 70.6 \n25499 584 ",
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>Year</th>\n <th>Rank</th>\n <th>Company</th>\n <th>Revenue (in millions)</th>\n <th>Profit (in millions)</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>25495</th>\n <td>2005</td>\n <td>496</td>\n <td>Wm. Wrigley Jr.</td>\n <td>3648.6</td>\n <td>493</td>\n </tr>\n <tr>\n <th>25496</th>\n <td>2005</td>\n <td>497</td>\n <td>Peabody Energy</td>\n <td>3631.6</td>\n <td>175.4</td>\n </tr>\n <tr>\n <th>25497</th>\n <td>2005</td>\n <td>498</td>\n <td>Wendy's International</td>\n <td>3630.4</td>\n <td>57.8</td>\n </tr>\n <tr>\n <th>25498</th>\n <td>2005</td>\n <td>499</td>\n <td>Kindred Healthcare</td>\n <td>3616.6</td>\n <td>70.6</td>\n </tr>\n <tr>\n <th>25499</th>\n <td>2005</td>\n <td>500</td>\n <td>Cincinnati Financial</td>\n <td>3614.0</td>\n <td>584</td>\n </tr>\n </tbody>\n</table>\n</div>"
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.tail()"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T01:11:31.214501Z",
"start_time": "2023-05-18T01:11:31.199825Z"
}
}
},
{
"cell_type": "markdown",
"source": [],
"metadata": {
"collapsed": false
}
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment