Skip to content

Instantly share code, notes, and snippets.

View Adhira-Deogade's full-sized avatar
🐘

Adhira Adhira-Deogade

🐘
View GitHub Profile
In [1]:
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
Selecting and retrieving data
In [2]:
series_obj = Series(np.arange(8),index=['row 1','row 2','row 3','row 4','row 5','row 6','row 7','row 8'])
series_obj
Out[2]:
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
https://github.com/Adhira-Deogade/Data-mining/blob/master/Selecting%20and%20retrieving%20data.ipynb
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
####### Import libraries #########
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
Segment 1 - Filtering and selecting data
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
Selecting and retrieving data
series_obj = Series(np.arange(8), index=['row 1', 'row 2','row 3','row 4','row 5', 'row 6', 'row 7', 'row 8'])
series_obj