Basic Example HTML Code -> Runners Extract headers Step 5: Extract table rows Example 2 Metallica Ticket Sales Only Grab the First Table We don’t want that in this instance Grab All Tables. We don’t want that in this instance, we need to target a specific table Target a specific table #TO DO -> 2017 […]
Augmented Dickey–Fuller test
parts of the ADF test – tuple access by index
KPSS-test
parts of the ADF test -tuple access by index
Multicollinearity
dividing the total number of bases a player records by their total number of at-batsmaybe replace this with something else? CORRELATION MATRIX VIF Instead of using raw height, you might normalize or categorize height into bins, which could reduce the numerical interdependence.Calculate Condition Index (CI) How to address MulticollinearityDrop a Feature (At Bats) look at […]
Pandas Sample
We are going to be looking at Pandas Sample(). The sample() method returns a specified number of random rows. it also returns one row if a number is not specified https://youtu.be/REhRhRUcluI Example 1 – if else state location To start with, we are going to be importing various libraries. pandas as pd random string numpy […]
Pandas MultiIndex
We are going to be lloking at Pandas Multiindex https://youtu.be/O6Lv9nyN0i4?si=YMIZleZU2B-5zjcy to start with, we would import pandas as pd import pandas as pd Example 1 In this example, we create a Python dictionary “data_races, that stores race information, including race names, the year they occured, and a difficulty rating for each event data_races = { […]
Pandas Replace
In this Python Pandas tutorial we’re going to be taking a look at replace() which allows you to match a full value within your data frame and then replace it with something that you want. This article will cover seven different examples of Pandas replace increasing the complexity along the way. https://youtu.be/uMuyRonKMk4 We are going […]
Pandas Where
https://www.youtube.com/watch?v=Y7HMkDuR_DA&feature=youtu.be The where() function in Pandas is used to replace values in a DataFrame or Series where a condition is not met. It is used to check a data frame for one or more conditions and return the result. To start with we import pandas and numpy To start we’re going to import two essential […]
Pandas Mask
To start we’re going to create a simple dataframe in python: https://youtu.be/rsh_9lZ2ToM Prep the Data To start we’re going to create a simple dataframe in python: import pandas as pd import numpy as np df = pd.DataFrame({ ‘Hourly_Salary’: [‘500.00’, ‘10000.00’, ‘200.00’, ‘20.00’, np.nan] }) df[‘Hourly_Salary’] = pd.to_numeric(df[‘Hourly_Salary’]) Example 1 – if else state location To […]