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

Function _resolve_columns_of_interest

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

Source from the content-addressed store, hash-verified

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