Skip to content

Instantly share code, notes, and snippets.

View hygull's full-sized avatar
😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.

Rishikesh Agrawani hygull

😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.
View GitHub Profile
@hygull
hygull / DataFrame_groupby_loc.ipynb
Last active November 20, 2018 08:25
pandas, data science, groupby(), loc
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hygull
hygull / DataScience_Practice.csv
Last active November 20, 2018 05:28
pandas, data science practice using a simple csv file, use of loc and groupby (little use, you will see more examples in a gist created after this)
Country City Education Incom Gender
0 United States New York High School 100000 Female
1 United States New York High School 105000 Male
2 United States New York High School 112000 Female
3 United States New York BA 150000 Male
4 United States Las Vegas BA 155000 Female
5 United States Las Vegas BA 160000 Male
6 United States Las Vegas PHD 190000 Female
7 United States Miami PHD 205521 Male
8 United States Miami PHD 210050 Female
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hygull
hygull / Pandas-users.ipynb
Created November 19, 2018 06:32
Pandas, to_datetime(), concat(), plot(), isnull(), loc[a:b, c:d]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hygull
hygull / Pandas-groupby.ipynb
Last active November 19, 2018 06:26
Pandas, groupby(), mean(), resample()
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hygull
hygull / AAPL.ipynb
Created November 19, 2018 06:19
AAPL - Quandl data, plot using plotly, save figure as static image
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hygull
hygull / Lambda.ipynb
Last active November 19, 2018 06:15
Lambda functions in pandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hygull
hygull / dataframe-resample-fillna-skipna.md
Last active November 11, 2018 12:11
DataFrame, fillna, skipna, resample
>>> import pandas as pd
>>>
>>> df = pd.DataFrame({'A': range(1, 6)}, index=pd.date_range('2018-12-28', peri
ods=5))
>>>
>>> df2 = pd.DataFrame({'B': range(1, 13, 2)}, index=pd.date_range('2018-12-1',
periods=6))
>>>
>>> df
@hygull
hygull / contenteditable-allow-only-numbers.md
Last active November 11, 2018 06:14
Allow only numbers in contenteditable
<!DOCTYPE html>
<html>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>