Uh man.
writing and writing and coding and coding.
welcome to day 27 and 28.
Yesterday I coded. And I just scoured documentation. I mostly read documentation. Some of it was bad.
I have been reading documentation and scouring and reading and coding and reading and documentatoinssssss
Guess what else is a REALLY important part of this challenge.
I took so many cat naps. I have a cat so I just modeled my behavior after her and
Now I know about machine learning
Whatchu you know about that.
Anyway. I've been code. Coding. I've been coding. Don't. stop. Get off my case.
the nerve.
the posts are here okay. Today I might post a few.
import pandas as overchargedproblemsolvingmagic_stuff
problems = ['didn\'t have snazzy website', 'can\'t seem to connect with dev twitter']
solutions = ['do what i know how to do to make website MORE snazzy','finds data science twitter stuff']
business_stuff = overchargedproblemsolvingmagic_stuff.DataFrame([problems,solutions])
business_stuff.loc[0,1], business_stuff.loc[0,0]
# TODO "use loc" the documentation should say
look I mean, I'm a magician obviously. it says. right up there. go ahead check I'll wait.
Half the battle is reading documentation. If that sounds boring to you then that sucks and I feel you.
However. Let me tell you. I have been a tutorial chaser for a better part of my days. And with that comes "finding that ONE tutorial I did with the thing and the stuff".
Yeah. Not gonna find that. Unless you linked it. And made a github repo and blah.
really this time. I swear. I swear it.
I have learned so much about programming in the last three days from solely skimming documentation and testing out things.
Yes I feel like sometimes I'm not looking at probably the most important part of the code. But look watch wait.
super awesome sub hint inbound:
I will admit. Having a great IDE (an integrated development environment) is super key.
in this. Being able to access choice documentation RIGHT when you're coding and RIGHT when you need it is so slick.
Reading documentation is key because it's essential to find BAD DOCUMENTATION.
I'm working with this thing in this library that I like. It's from a library called nltk and I found some terrible documentation there and I think I can fix it.
So yeah.. no big deal. Might make some moves to contribute to open source..It's cool.
Maybe I can bother some people and learn something along the way.
Alright. That's all I have for now. Actually just kidding here is some supplemental hire worthy material if a hiring manager gets bored later
df_test = overchargedproblemsolvingmagic_stuff.DataFrame({
"A": ["col1", "col2", "col3", "col4", "col5", "col6", "col7", "col8", "col9"],
"B": ["one", "one", "one", "two", "two","one", "one", "two", "two"],
"C": ["small", "large", "large", "small", "small", "large", "small", "small", "large"],
"D": [1, 2, 2, 3, 3, 4, 5, 6, 7],
"E": [2, 4, 5, 5, 6, 6, 8, 9, 9]
})
That's a little data thing I found in Panda docs earlier today explaining how to do pivot tables. It was so confusing. Here's what I learned.
df_test # boring.
df_test_pivot = overchargedproblemsolvingmagic_stuff.pivot_table(df_test, index=["C"], columns=["A"])
df_test_pivot_ca
def pivot_table_by_lines(data,a,b):
return overchargedproblemsolvingmagic_stuff.pivot_table(data, index=[a],columns=[b])
pivot_table_by_lines(df_test,"C","A")
# time to make some rows out of some colxs,x being number of row and 's' making 'col' plural
pivot_table_by_lines(df_test,"A","D")
pivot_table_by_lines(df_test,"B","C")
dang. what are pivot tables?
another way to look at data friend.
peace stalkers.