data science
Using curve fitting to fit an equation to designated data points
Assume a situation where you have the frame of an equation at ready but are struggling to fit that equation to some data points. In other words, if you are stuck in a situation where you need to fit the and equation or function to a set of data points, Read more…
data science
running jupyter notebook allowing external access and no authentication
learned from https://stackoverflow.com/questions/41159797/how-to-disable-password-request-for-a-jupyter-notebook-session
data science
selecting rows based on timedelta values
Assume we have a series that contains time difference values. Let’s find rows which have time difference more than an hour. According to the pandas documentation, the pandas timedelta is actually using the python’s datetime module’s timedelta. For first make a datetime.timedelta object that contains a value of one hour Read more…
data science
converting pandas column to datetime format
here is a column which has timestamp in string format. convert it to datetime format with to_datetime method
data science
fetching dataframe index list from array of True/False values
While working with Pandas dataframes, I encountered a situation where I needed to locate the row indexes that satisfy a certain condition so that I could later drop them from the dataframe. Getting a True/False series for the entire index of a dataframe can be done various based on the Read more…