Move pandas top level import (#13926)

This commit is contained in:
Mayur Singal 2023-11-10 14:15:14 +05:30 committed by GitHub
parent cefe22247b
commit 4b625f7ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -17,8 +17,6 @@ from datetime import datetime
from functools import singledispatch
from io import BytesIO
import pandas as pd
from metadata.clients.aws_client import AWSClient
from metadata.generated.schema.entity.data.table import Table, TableData
from metadata.generated.schema.security.credentials.awsCredentials import AWSCredentials
@ -44,6 +42,8 @@ def upload_sample_data(data: TableData, profiler_interface: ProfilerInterface) -
"""
Upload Sample data to storage config
"""
import pandas as pd # pylint: disable=import-outside-toplevel
try:
sample_storage_config = profiler_interface.storage_config
if not sample_storage_config:

View File

@ -60,7 +60,7 @@ class AthenaCliTest(CliCommonDB.TestSuite):
return 7
def inserted_rows_count(self) -> int:
return 100
return 50
def view_column_lineage_count(self) -> int:
pass

View File

@ -58,7 +58,7 @@ class DatalakeCliTest(CliCommonDB.TestSuite):
return 7
def inserted_rows_count(self) -> int:
return 100
return 50
def view_column_lineage_count(self) -> int:
pass

View File

@ -83,7 +83,7 @@ class RedshiftCliTest(CliCommonDB.TestSuite, SQACommonMethods):
return 5
def inserted_rows_count(self) -> int:
return 100
return 50
def view_column_lineage_count(self) -> int:
"""