File tree Expand file tree Collapse file tree
ingestion/src/metadata/readers/dataframe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ def _get_avro_columns(file_obj) -> Optional[List[Column]]:
8484 import json
8585
8686 import fastavro
87- from pandas import DataFrame
8887
8988 from metadata .parsers .avro_parser import parse_avro_schema
9089
Original file line number Diff line number Diff line change 1717from functools import singledispatchmethod
1818from typing import Optional
1919
20- import pandas as pd
21-
2220from metadata .generated .schema .entity .services .connections .database .datalake .azureConfig import (
2321 AzureConfig ,
2422)
@@ -50,6 +48,8 @@ class MF4DataFrameReader(DataFrameReader):
5048 @staticmethod
5149 def _extract_header_from_mdf (mdf ) -> Optional [DatalakeColumnWrapper ]:
5250 """Extract header properties from an opened MDF object."""
51+ import pandas as pd
52+
5353 if hasattr (mdf , "header" ) and hasattr (mdf .header , "_common_properties" ):
5454 common_props = mdf .header ._common_properties
5555
You can’t perform that action at this time.
0 commit comments