Skip to content

Raquib603/Google-Colab-Notebook

Repository files navigation

This is google Colab for Python/Jupyter_Notebook

--df.loc['Yemen'] ~ only works on proper indexes
--df.iloc[1] ~only integer value input --df[['Rank', 'Capital']] ~to see the specific columns
--df.sort_values (by = 'Country', ascending = False) ~ sort by any column
--df.columns ~ to see the column names
--df.set_index('Country', inplace = True) ~ we should select a proper column
df.reset_index(inplace=True) ~ For resetting indexes --df.drop(columns = ['column_name'] ~ for dropping column
--axis 0 = rows and axis 1 = columns
--df[df['Rank'] < 10].sort_values(by = 'Rank', ascending = False) ~ Column with condition
--df[df['Country'].str.contains('United')] ~ to see the specific row with string value
--df2.filter(items =['Continent', 'CCA3'], axis = 1) ~ specific column
--df2.filter(items =['Zimbabwe'], axis = 0) ~ specific row

--frame_group_by = df.groupby('Base Flavor') ~ Grouping on a column --df.groupby('Base Flavor').count() ~ Group wise other column's count --frame_group_by.mean(numeric_only=True) ~ Group wise other column's mean --df.groupby('Base Flavor').agg({'Flavor Rating':['mean','max','count','sum']}) --df.groupby('Base Flavor').sum(numeric_only=True) ~ Group wise other column's summation

#Numpy Visuals

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published