Bite 7. Parsing dates from logs
|
|
In this bite we will look at this small server …
datetime
file processing
|
|
Bite 16. PyBites date generator
|
|
Write a generator that returns every 100th day counting forward from …
datetime
generators
|
|
Bite 19. Write a property
|
|
Write a simple Promo class. Its constructor receives two variables: …
datetime
properties
|
|
Bite 92. Humanize a datetime
|
|
In this Bite you will convert a timedelta object into …
datetime
namedtuple
|
|
Bite 67. Working with datetimes
|
|
This Bite involves solving two problems using datetime:We kicked off …
datetime
timedelta
|
|
Bite 51. When does Python 2 die on Planet Miller?
|
|
Imagine you landed on Planet Miller (from the movie Interstellar) …
datetime
|
|
Bite 28. Converting date strings to datetimes
|
|
In this Bite you are provided with a list of …
Counter
datetime
findall
|
|
Bite 39. Calculate the total duration of a course
|
|
In this Bite you read in a text file with …
datetime
findall
numbers
timedelta
|
|
Bite 35. Having fun with heapq
|
|
In this Bite you are provided with 3 data structures: …
datetime
heapq
|
|
Bite 128. Work with datetime's strptime and strftime
|
|
In this Bite you get some more practice with datetime's …
datetime
strftime
strptime
|
|
Bite 135. Sort a list of book objects
|
|
In this Bite you are going to look at a …
attrgetter
datetime
lambda
list
namedtuple
operator
sorting
|
|
Bite 139. Calculate a coding streak in days
|
|
In this Bite you are going to calculate the amount …
datetime
string manipulation
timedelta
|
|
Bite 141. Primitive date format inferrer
|
|
Complete the get_dates method given the following: a listing of …
classmethod
datetime
enum
exception handling
|
|
Bite 144. Calculate the Number of Months Passed
|
|
Some more fun working with dates! In this Bite you …
datetime
dateutil
exception handling
|
|
Bite 147. 100 WEEKDays of Code Date Range
|
|
Doing a #100DaysOfCode can be challenging, and some of it …
datetime
dateutil
|
|
Bite 151. Contemporary Composers
|
|
You are given a list of operas and a list …
datetime
dict
exception handling
generators
namedtuple
|
|
Bite 173. Set up future notifications
|
|
Let's do another datetime processing Bite. Complete add_todo below that …
datetime
findall
f-strings
timedelta
|
|
Bite 175. Find missing dates
|
|
Complete get_misssing_dates that takes an (unordered) sequence of datetime.date objects. …
datetime
dateutil
pandas
|
|
Bite 178. Parse PyBites blog git commit log
|
|
In this Bite we want to figure out how active …
Counter
data analysis
datetime
dateutil
string parsing
|
|
Bite 186. Calculate number of books to have read at date ...
|
|
For this Bite you are asked to start working on …
datetime
dateutil
exception handling
|
|
Bite 197. What date is Mother's Day celebrated?
|
|
It's the 12th of May 2019 when we write this …
datetime
dateutil
|
|
Bite 198. Calculate my Mac's longest uptime
|
|
Given the following output, calculate the longest uptime / time …
data wrangling
datetime
dateutil
string parsing
|
|
Bite 219. Bite notification planner
|
|
Another real world use case. When we added notifications to …
datetime
generators
|
|
Bite 233. Make a zipfile of the latest log files
|
|
You added some monitoring the other day writing log files …
datetime
os module
pathlib
zipfile
|
|
Bite 237. Get the dates Ninja belts were earned
|
|
Another real-world scenario: in this Bite you will parse a …
datetime
json
looping
pandas
sorting
|
|
Bite 242. Zodiacal data parsing
|
|
In this Bite we will write tests for a module …
datetime
fixtures
pytest
|
|
Bite 283. Like there's no tomorrow?
|
|
Ever have difficulty remembering what today's date is? How about …
datetime
|
|
Bite 291. Find the fastest speech
|
|
In this Bite you will parse an SRT (SubRip Subtitle …
datetime
sorting
string manipulation
|
|
Bite 300. 🥳 PTO Calculator
|
|
We've all been affected by COVID-19 in one way or …
calendar
datetime
exception handling
looping
numbers
string formatting
|
|
Bite 301. Exchange rates
|
|
In this Bite you have to provide the currency exchange …
datetime
dict
sorting
|
|
Bite 316. To rent or to stream movies?
|
|
You're on a movie budget so you want to evaluate …
collections
datetime
dict
typing
|
|
Bite 322. Reading progress
|
|
Happy New Year! How many books do you aim to …
datetime
numbers
|
|
Bite 171. Make a terminal spinner animation
|
|
In this Bite you will spice up your command line …
command line
itertools
stdout
sys
time
|
|
Bite 83. At what time does PyBites live?
|
|
Get to know pytz! pytz brings the Olson tz database …
pytz
timezones
|
|
Bite 73. Organize a meeting between timezones (pytz)
|
|
Help PyBites community friends find a reasonable common time to …
pytz
timezones
|
|
Bite 328. Longest coding streak
|
|
What is your longest streak of completed Bites? In Bite …
fromordinal
itertools
timezones
toordinal
|
|
Bite 37. Rewrite a for loop using recursion
|
|
Although you have to be careful using recursion it is …
recursion
reverse
|
|
Bite 48. Make a bar chart of new Safari books
|
|
Some time ago we made a little Slack bot to …
bar chart
data analysis
|
|
Bite 49. Scrape Packt's html with BeautifulSoup
|
|
In this Bite you will parse Packt's free learning ebook …
beautifulsoup
namedtuple
requests
|
|
Bite 62. Data structures matter - speed up your Python code
|
|
In this Bite we provide you with 5 functions which …
data structures
performance
|
|
Bite 69. Regex Fun - part II
|
|
It's time for another Regex one! (here is part I) …
re
regular expressions
|
|
Bite 88. Write a performance monitoring context manager
|
|
It's time for Context Managers part II. In Bite 20 …
context managers
Counter
|
|
Bite 95. Subclass the dict built-in
|
|
In this Bite you will subclass the dict built-in to …
classes
inheritance
|
|
Intro Bite 01. F-strings and a simple if/else
|
|
Welcome to our Intro Bites, it's time to gauge where …
f-strings
if/else
|
|
Intro Bite 06. Strip out vowels and count the number of replacements
|
|
In this Bite we'd like you to loop over the …
counting
regular expressions
replace
string manipulation
Zen of Python
|
|
Bite 131. Screen scraper
|
|
This is the output from using screenFetch on my junky …
dict
index
regular expressions
slicing
string manipulation
|
|
Bite 153. Round a sequence of numbers
|
|
It's time to get mathematical! In this Bite we ask …
list comprehensions
math
rounding
|
|
Bite 154. Write your own Data Class
|
|
As you might have noticed we are now on Python …
dataclasses
data structures
hashable
sorting
type hinting
|
|
Bite 170. Analyze McDonald's food data
|
|
In this Bite you are going to analyze some nutrition …
data analysis
pandas
|
|
Bite 181. Keep a list sorted upon insert
|
|
Complete the add method of the OrderedList class which takes …
bisect
classes
data structures
__str__
|
|
Newbie Bite 01. Assigning Objects
|
|
Welcome to our Newbie Bites, it's time to learn the …
newbie
variables
|
|
Newbie Bite 05. Basic Maths
|
|
We're able to print integers. Now what? Yep, it's time …
math
newbie
|
|
Bite 203. Type hinting practice
|
|
It's time for some type hinting! For this bite, you …
classes
dataclasses
type hinting
|
|
Bite 204. Pomodoro with asyncio
|
|
This Bite explores asyncio and type-hinting. For this bite, you …
asyncio
pomodoro
|
|
Bite 206. Calculate and evenly split the bill
|
|
Three old friends Bob, Mary, and Alice meet at PyCon …
Decimal
numbers
rounding
|
|
Bite 207. Cached property decorator
|
|
Given the sample class Planet, computing the mass attribute of …
caching
classes
decorators
properties
|
|
Newbie Bite 12. Dicts
|
|
It's time to dive into the next data structure in …
dict
list
newbie
|
|
Newbie Bite 17. If / else
|
|
It's time to look at the amazing if statement! It's …
if/else
newbie
|
|
Newbie Bite 22. For loops
|
|
It's time to move on to a slightly more complex …
looping
newbie
|
|
Bite 218. Create a sandwich decorator
|
|
After creating our Decorators and Context Managers learning path we …
decorators
|
|
Bite 221. Parse best selling lists using the NY times API
|
|
In this Bite you are going to parse NY times …
APIs
json
mock
requests
|
|
Bite 251. Introducing Pandas Series
|
|
Let's get started with Pandas! In case you are not …
pandas
series
string module
|
|
Bite 258. What the flux?
|
|
One of the benefits of accounting is being able to …
finance
math
pandas
|
|
Bite 260. Let's play with Pandas DataFrames
|
|
To this point in the Pandas learning path we have …
dataframes
pandas
|
|
Bite 261. Visit all PyCons in Europe
|
|
In Bite 256 you scraped data on 2019 PyCons. Now …
data analysis
dataclasses
itertools
math
|
|
Bite 265. Optimal fund raising
|
|
Here is another classic algorithm problem wrapped in a Bite. …
algorithms
looping
math
|
|
Bite 269. Taxable Income Calculator
|
|
I have no idea what rabbit hole I followed to …
classes
dataclasses
finance
namedtuple
properties
typing
|
|
Bite 311. Cleaning text with pandas
|
|
We recently published a blog post about how to approach …
data cleaning
pandas
TF-IDF
|
|
Bite 327. AST visitor
|
|
In Bite 312 we learned how to identify builtin functions, …
AST
|
|