Odo Documentation

odo Documentation

Release 0.4.0 Matthew Rocklin

December 15, 2015

Contents

1 Example

3

2 Contents

5

2.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2.2 Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

2.3 Developer Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

i

ii

odo Documentation, Release 0.4.0

odo takes two arguments, a source and a target for a data transfer. >>> from odo import odo >>> odo(source, target) # load source into target It efficiently migrates data from the source to the target through a network of conversions.

Contents

1

odo Documentation, Release 0.4.0

2

Contents

CHAPTER 1

Example

>>> from odo import odo >>> import pandas as pd

>>> odo('accounts.csv', pd.DataFrame)

name balance

0 Alice

100

1

Bob

200

2 Charlie

300

# Load csv file into DataFrame

>>> # Load CSV file into Hive database >>> odo('accounts.csv', 'hive://user:password@hostname/db::accounts')

3

odo Documentation, Release 0.4.0

4

Chapter 1. Example

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download