Skip to content

Commit 3b86cb1

Browse files
committed
Use pd as name as pandas
1 parent e24957d commit 3b86cb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/excel/_odfreader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pandas
1+
import pandas as pd
22
from pandas import compat
33
from pandas.io.parsers import TextParser
44

@@ -141,7 +141,7 @@ def __get_cell_value(self, cell):
141141
return float(cell_value)
142142
elif cell_type == 'date':
143143
cell_value = cell.attributes.get((OFFICENS, 'date-value'))
144-
return pandas.Timestamp(cell_value)
144+
return pd.Timestamp(cell_value)
145145
elif cell_type == 'time':
146146
cell_value = cell.attributes.get((OFFICENS, 'time-value'))
147147
return(pandas_isoduration_compatibility(cell_value))
@@ -160,4 +160,4 @@ def pandas_isoduration_compatibility(duration):
160160
"""
161161
if duration.startswith('PT'):
162162
duration = 'P0DT' + duration[2:]
163-
return pandas.Timedelta(duration)
163+
return pd.Timedelta(duration)

0 commit comments

Comments
 (0)