Horje
python pandas how to select range of data Code Example
python pandas how to select range of data
import numpy as np
import pandas as pd

df = pd.DataFrame(np.random.random((200,3)))
df['date'] = pd.date_range('2000-1-1', periods=200, freq='D')
mask = (df['date'] > '2000-6-1') & (df['date'] <= '2000-6-10')
print(df.loc[mask])




Python

Related
random choice sampling numpy Code Example random choice sampling numpy Code Example
rnadom number python Code Example rnadom number python Code Example
python cholesky Code Example python cholesky Code Example
scrape email in a list from website python Code Example scrape email in a list from website python Code Example
how to sum the revenue from every day in a dataframe python Code Example how to sum the revenue from every day in a dataframe python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7