MCPcopy Create free account
hub / github.com/apache/arrow / _resolve_columns_of_interest

Function _resolve_columns_of_interest

python/pyarrow/pandas_compat.py:554–565  ·  view source on GitHub ↗
(df, schema, columns)

Source from the content-addressed store, hash-verified

552
553
554def _resolve_columns_of_interest(df, schema, columns):
555 if schema is not None and columns is not None:
556 raise ValueError('Schema and columns arguments are mutually '
557 'exclusive, pass only one of them')
558 elif schema is not None:
559 columns = schema.names
560 elif columns is not None:
561 columns = [c for c in columns if c in df.columns]
562 else:
563 columns = df.columns
564
565 return columns
566
567
568def dataframe_to_types(df, preserve_index, columns=None):

Callers 1

_get_columns_to_convertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected