kristofer / pandasIntro.md
Last active
Pandas intro
Append is deprecated.
Use
# temp_df = movies_df.append(movies_df)
dfcopy = movies_df.copy()
kristofer / pyvenvs.md
Last active
How do I do that virtual environment thing again?
Create python virtual environment
# to create a venv
python3 -m venv venv
# to start/activate it
kristofer / JSON Intro
Last active
Introduction to JSON
JSON, or JavaScript Object Notation, is a lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate. It has become an essential tool for programmers, particularly in web development, due to its simplicity and versatility.
Why JSON is Important to Programmers
Ease of Use: JSON's straightforward syntax makes it accessible to both new and experienced programmers. Its structure is composed of key-value pairs, much like a dictionary in Python or an object in JavaScript.
Language Independence: JSON is language-agnostic, meaning it can be used with almost any programming language. Whether you're working with JavaScript, Python, Java, or any other language, JSON is widely supported and easy to integrate.
kristofer / Bard's grep Intro
Last active
Verily, grep
is a most puissant tool in the hands of a programmer, especially when one must
search through vast tomes of code or scrolls of logs.
Picture this scene: thou art a developer, toiling on a grand project with countless lines of code.
Thou dost suspect a bug lieth within a function known as processData.
Rather than peruse each folio by hand, thou canst employ grep to swiftly find all instances of processData
within thy code.
Example Command:
kristofer / TastyHints.md
Last active
Lab notes on getting going thru the early parts of Tasty lab.
Tasty Lab Hints
Lab notes on getting going thru the early parts of Tasty.
Hint 0
Remember start very small and build outward. The class/program already works, run it and see.
Hint 1
kristofer / TastyHint3.md
Last active
I'm struggling to see where we take the user input for the task name.
the command
variable will have exit
or whatever, right?
and the new <task>
will actually look like new Buy Milk
so take the string and split it into a list of strings, breaking each string on the character.
kristofer / TastyHint2.md
Last active
If we have thought about this:
tasks = {} # creates an empty dictionary
tasks['Buy Milk'] = 'not yet'
tasks['Start Lab'] = 'completed'