Skip to content

Commit ef11aac

Browse files
committed
privatize iotools.midc.format_index and format_index_raw
1 parent 16a97be commit ef11aac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pvlib/iotools/midc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
}
103103

104104

105-
def format_index(data):
105+
def _format_index(data):
106106
"""Create DatetimeIndex for the Dataframe localized to the timezone provided
107107
as the label of the second (time) column.
108108
@@ -126,7 +126,7 @@ def format_index(data):
126126
return data
127127

128128

129-
def format_index_raw(data):
129+
def _format_index_raw(data):
130130
"""Create DatetimeIndex for the Dataframe localized to the timezone provided
131131
as the label of the third column.
132132
@@ -200,9 +200,9 @@ def read_midc(filename, variable_map={}, raw_data=False, **kwargs):
200200
"""
201201
data = pd.read_csv(filename, **kwargs)
202202
if raw_data:
203-
data = format_index_raw(data)
203+
data = _format_index_raw(data)
204204
else:
205-
data = format_index(data)
205+
data = _format_index(data)
206206
data = data.rename(columns=variable_map)
207207
return data
208208

0 commit comments

Comments
 (0)