Skip to content

Commit 82538c7

Browse files
committed
fix readme
1 parent 70895a4 commit 82538c7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ import pandas as pd
3232
import pandas_flavor as pf
3333

3434
@pf.register_dataframe_accessor('my_flavor')
35-
def is_cool(df):
36-
"""Is my accessor cool?"""
37-
return True
35+
class MyFlavor(object):
36+
37+
def __init__(self, data):
38+
self._data
39+
40+
def is_cool(self):
41+
"""Is my accessor cool?"""
42+
return True
3843

3944
# DataFrame.
4045
df = DataFrame()

0 commit comments

Comments
 (0)