diff --git a/README.md b/README.md index b5ef95e..de71168 100644 --- a/README.md +++ b/README.md @@ -2078,7 +2078,7 @@ Memory View ``` ```python - = list() # Returns a list of ints, floats or bytes. + = list() # Returns a list of ints, floats, or bytes. = str(, 'utf-8') # Treats memoryview as a bytes object. = .hex() # Returns hex pairs. Accepts `sep=`. ``` @@ -3482,7 +3482,7 @@ def scrape_data(): def wrangle_data(covid, bitcoin, gold, dow): df = pd.concat([bitcoin, gold, dow], axis=1) # Creates table by joining columns on dates. - df = df.sort_index().interpolate() # Sorts table by date and interpolates NaN-s. + df = df.sort_index().interpolate() # Sorts rows by date and interpolates NaN-s. df = df.loc['2020-02-23':] # Discards rows before '2020-02-23'. df = (df / df.iloc[0]) * 100 # Calculates percentages relative to day 1. df = df.join(covid) # Adds column with covid cases. diff --git a/index.html b/index.html index e6f46f4..316f809 100644 --- a/index.html +++ b/index.html @@ -1710,7 +1710,7 @@ CompletedProcess(args=['bc', '<typecode>', <mview>) # Treats memoryview as a sequence of numbers. <file>.write(<mview>) # Writes `bytes(<mview>)` to the binary file. -
<list>  = list(<mview>)                        # Returns a list of ints, floats or bytes.
+
<list>  = list(<mview>)                        # Returns a list of ints, floats, or bytes.
 <str>   = str(<mview>, 'utf-8')                # Treats memoryview as a bytes object.
 <str>   = <mview>.hex()                        # Returns hex pairs. Accepts `sep=<str>`.
 
@@ -2829,7 +2829,7 @@ px.line(df, x='Date', y=def wrangle_data(covid, bitcoin, gold, dow): df = pd.concat([bitcoin, gold, dow], axis=1) # Creates table by joining columns on dates. - df = df.sort_index().interpolate() # Sorts table by date and interpolates NaN-s. + df = df.sort_index().interpolate() # Sorts rows by date and interpolates NaN-s. df = df.loc['2020-02-23':] # Discards rows before '2020-02-23'. df = (df / df.iloc[0]) * 100 # Calculates percentages relative to day 1. df = df.join(covid) # Adds column with covid cases.