Skip to content

Commit

Permalink
Format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
jafetcc02 committed Jan 17, 2024
1 parent c57d8db commit 99b6d28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pydbsmgr/fast_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

from pydbsmgr.utils.tools import ColumnsCheck


class DataFrameToSQL(ColumnsCheck):
"""Allows you to create a table from a dataframe"""

__slots__ = ['_connection_string','_con', '_cur' ]
__slots__ = ["_connection_string", "_con", "_cur"]

def __init__(self, connection_string: str) -> None:
"""Set the connection with the database"""
self._connection_string = connection_string
Expand Down Expand Up @@ -165,7 +167,6 @@ def __init__(self, connection_string: str) -> None:
"""Establish the connection to the database using the `DataFrameToSQL` class."""
super().__init__(connection_string)


def execute(
self,
df: DataFrame,
Expand Down
4 changes: 2 additions & 2 deletions pydbsmgr/lightest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def process_dates(x: str, format_type: str, auxiliary_type: str) -> str:
class LightCleaner:
"""Performs a light cleaning on the table"""

#Increase memory efficiency
__slots__ = ['df', 'dict_dtypes']
# Increase memory efficiency
__slots__ = ["df", "dict_dtypes"]

def __init__(self, df_: DataFrame):
self.df = df_.copy()
Expand Down

0 comments on commit 99b6d28

Please sign in to comment.