All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

Login


All New
's Avatar

kristofer

Joined 1714567308

Recently created
Least recently created
Recently updated
Least recently updated
All gists 108
kristofer's Avatar

kristofer / pandasIntro.md

0 likes
0 forks
1 files
Last active 1732560594

Pandas intro

Append is deprecated.

Use

# temp_df = movies_df.append(movies_df)

dfcopy = movies_df.copy()
kristofer's Avatar

kristofer / pyvenvs.md

0 likes
0 forks
1 files
Last active 1732218138

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's Avatar

kristofer / Python Redux

0 likes
0 forks
1 files
Last active 1731679911
Materials to review

Python - your new BFF

Python needs to be your new, best, friend.

Python, an intuitive and versatile programming language, has earned its reputation as the go-to language for beginners and experts alike. Its simplicity and readability make it accessible to newcomers, while its extensive libraries and frameworks provide powerful tools for complex projects.

Regularly revisiting the essentials and fundamentals of Python is crucial for both learning and mastery. It is crucial to having a strong foundation that ensures that you remain adept at problem-solving, efficient

kristofer's Avatar

kristofer / JSON Intro

0 likes
0 forks
1 files
Last active 1731508068

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's Avatar

kristofer / Bard's grep Intro

0 likes
0 forks
1 files
Last active 1731507075

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's Avatar

kristofer / Why PIP?

0 likes
0 forks
1 files
Last active 1731508154
why is PIP needed when learning python?

Why PIP?

"pip install" is crucial in the Python ecosystem for several reasons:

Imagine you're building a web application: You might need various libraries to handle web frameworks, database connections, or even data visualization. While Python comes with a rich standard library, many powerful tools and packages are not included by default. Here's where "pip install" comes into play.

kristofer's Avatar

kristofer / TastyHints.md

0 likes
0 forks
1 files
Last active 1731423730
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's Avatar

kristofer / TastyHint3.md

0 likes
0 forks
1 files
Last active 1731421149

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's Avatar

kristofer / TastyHint2.md

0 likes
0 forks
1 files
Last active 1731350954

If we have thought about this:


tasks = {}   # creates an empty dictionary

tasks['Buy Milk'] = 'not yet'
tasks['Start Lab'] = 'completed'
kristofer's Avatar

kristofer / TastyHint1.md

0 likes
0 forks
1 files
Last active 1731350546

Remember start very small and build outward.

Hint 1

If you haven't already decided how to start...

This is the tasks variable.

    Tasty class.
Newer Older

Powered by Opengist ⋅ Load: 134ms⋅

English
Čeština Deutsch English Español Français Magyar Português Русский 中文 繁體中文