Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Metz committed Oct 21, 2020
1 parent 53678ee commit 9dda513
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions taxcrunch/cruncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,13 @@ def basic_table(self):
)
self.df_basic = self.df_basic.round(2)

self.df_basic.iloc[0,:] = self.df_basic.iloc[0,:].apply(lambda x: "{:,.2f}".format(x))
self.df_basic.iloc[2,:] = self.df_basic.iloc[2,:].apply(lambda x: "{:,.2f}".format(x))

self.df_basic.iloc[0, :] = self.df_basic.iloc[0, :].apply(
lambda x: "{:,.2f}".format(x)
)
self.df_basic.iloc[2, :] = self.df_basic.iloc[2, :].apply(
lambda x: "{:,.2f}".format(x)
)

return self.df_basic

def calc_table(self):
Expand Down Expand Up @@ -482,7 +486,9 @@ def calc_table(self):

self.df_calc.Base = self.df_calc.Base.apply(lambda x: "{:,.2f}".format(x))
self.df_calc.Reform = self.df_calc.Reform.apply(lambda x: "{:,.2f}".format(x))
self.df_calc.iloc[:,2] = self.df_calc.iloc[:,2].apply(lambda x: "{:,.2f}".format(x))
self.df_calc.iloc[:, 2] = self.df_calc.iloc[:, 2].apply(
lambda x: "{:,.2f}".format(x)
)

return self.df_calc

Expand Down

0 comments on commit 9dda513

Please sign in to comment.