Data Scientist with Python Career Track
Stars
0
Forks
0
Watchers
0
Open Issues
0
Overall repository health assessment
No package.json found
This might not be a Node.js project
60
commits
How to read CSV(comma separated value files) to DF(dataframes). bronze = pd.read_csv('Bronze.csv')
91a2ceeView on GitHubYou can change the order of the rows in a DataFrame by calling .sort_values(). It's also useful to be able to sort by elements in the index. For this, you need to use .sort_index().
046abdeView on GitHubWithout an index, subsetting takes the form df[df["column"].isin(values)].
f0a6879View on GitHubreset_index(), temperatures_ind.reset_index(drop=True), temperatures.set_index("city")
19afaf3View on GitHubIn pandas, pivot tables are essentially just another way of performing grouped calculations. That is, the .pivot_table() method is just an alternative to .groupby().
129ac6cView on GitHubvar=sales.groupby("type")[["unemployment", "fuel_price_usd_per_l"]].agg([np.min, np.max, np.mean, np.me
0bf176aView on GitHubCalculations with groupby() -> when you have two columns to group use
babe99bView on GitHubPrint the dataframe and look through the columns by print(dataframe.to_string()
e119931View on GitHubCounting the number of each type of store and the number of each type of department. stores and departments are both DataFrames.
2b62667View on GitHub