Skip to content

Commit 50a95c2

Browse files
committed
Merge pull request #3921 from jtratner/remove-unused-exceptions
CLN: Remove unused Exceptions
2 parents fc589c6 + 2f26ff8 commit 50a95c2

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

pandas/core/panel.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ def panel_index(time, panels, names=['time', 'panel']):
9090
return MultiIndex(levels, labels, sortorder=None, names=names)
9191

9292

93-
class PanelError(Exception):
94-
pass
95-
96-
9793
def _arith_method(func, name):
9894
# work only for scalars
9995

pandas/io/parsers.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
import pandas.parser as _parser
2525
from pandas.tseries.period import Period
2626

27-
28-
class DateConversionError(Exception):
29-
pass
30-
3127
_parser_params = """Also supports optionally iterating or breaking of the file
3228
into chunks.
3329
@@ -1752,10 +1748,7 @@ def _try_convert_dates(parser, colspec, data_dict, columns):
17521748
new_name = '_'.join([str(x) for x in colnames])
17531749
to_parse = [data_dict[c] for c in colnames if c in data_dict]
17541750

1755-
try:
1756-
new_col = parser(*to_parse)
1757-
except DateConversionError:
1758-
new_col = parser(_concat_date_cols(to_parse))
1751+
new_col = parser(*to_parse)
17591752
return new_name, new_col, colnames
17601753

17611754

pandas/tseries/index.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ def _ensure_datetime64(other):
8787
raise TypeError('%s type object %s' % (type(other), str(other)))
8888

8989

90-
class TimeSeriesError(Exception):
91-
pass
92-
93-
9490
_midnight = time(0, 0)
9591

9692
class DatetimeIndex(Int64Index):

0 commit comments

Comments
 (0)