
# Version number keeps track with the main `fsic` module
from fsic import __version__

import re
from typing import List

from fsic import BaseModel, Symbol


def symbols_to_dataframe(symbols: List[Symbol]) -> 'DataFrame':
    """Convert the list of symbols to a `pandas` DataFrame. **Requires `pandas`**."""
    from pandas import DataFrame

    return DataFrame([s._asdict() for s in symbols])

def model_to_dataframe(model: BaseModel) -> 'DataFrame':
    """Return the values and solution information from the model as a `pandas` DataFrame. **Requires `pandas`**."""
    from pandas import DataFrame

    df = DataFrame(model.values.T, index=model.span, columns=model.names)
    df['status'] = model.status
    df['iterations'] = model.iterations

    return df


# Version number keeps track with the main `fsic` module
from fsic import __version__

import re
from typing import List

from fsic import BaseModel, Symbol


def symbols_to_dataframe(symbols: List[Symbol]) -> 'pandas.DataFrame':
    """Convert the list of symbols to a `pandas` DataFrame. **Requires `pandas`**."""
    from pandas import DataFrame

    return DataFrame([s._asdict() for s in symbols])

def model_to_dataframe(model: BaseModel) -> 'pandas.DataFrame':
    """Return the values and solution information from the model as a `pandas` DataFrame. **Requires `pandas`**."""
    from pandas import DataFrame

    df = DataFrame(model.values.T, index=model.span, columns=model.names)
    df['status'] = model.status
    df['iterations'] = model.iterations

    return df

Update type annotations to reference package names in full
TYP: Update type annotations to reference package names in full

  
  # Version number keeps track with the main `fsic` module
  from fsic import __version__
  
  import re
  from typing import List
  
  from fsic import BaseModel, Symbol
  
  
- def symbols_to_dataframe(symbols: List[Symbol]) -> 'DataFrame':
+ def symbols_to_dataframe(symbols: List[Symbol]) -> 'pandas.DataFrame':
      """Convert the list of symbols to a `pandas` DataFrame. **Requires `pandas`**."""
      from pandas import DataFrame
  
      return DataFrame([s._asdict() for s in symbols])
  
- def model_to_dataframe(model: BaseModel) -> 'DataFrame':
+ def model_to_dataframe(model: BaseModel) -> 'pandas.DataFrame':
      """Return the values and solution information from the model as a `pandas` DataFrame. **Requires `pandas`**."""
      from pandas import DataFrame
  
      df = DataFrame(model.values.T, index=model.span, columns=model.names)
      df['status'] = model.status
      df['iterations'] = model.iterations
  
      return df
  
Update type annotations to reference package names in full
## Code Before:

# Version number keeps track with the main `fsic` module
from fsic import __version__

import re
from typing import List

from fsic import BaseModel, Symbol


def symbols_to_dataframe(symbols: List[Symbol]) -> 'DataFrame':
    """Convert the list of symbols to a `pandas` DataFrame. **Requires `pandas`**."""
    from pandas import DataFrame

    return DataFrame([s._asdict() for s in symbols])

def model_to_dataframe(model: BaseModel) -> 'DataFrame':
    """Return the values and solution information from the model as a `pandas` DataFrame. **Requires `pandas`**."""
    from pandas import DataFrame

    df = DataFrame(model.values.T, index=model.span, columns=model.names)
    df['status'] = model.status
    df['iterations'] = model.iterations

    return df

## Instruction:
Update type annotations to reference package names in full
## Code After:

# Version number keeps track with the main `fsic` module
from fsic import __version__

import re
from typing import List

from fsic import BaseModel, Symbol


def symbols_to_dataframe(symbols: List[Symbol]) -> 'pandas.DataFrame':
    """Convert the list of symbols to a `pandas` DataFrame. **Requires `pandas`**."""
    from pandas import DataFrame

    return DataFrame([s._asdict() for s in symbols])

def model_to_dataframe(model: BaseModel) -> 'pandas.DataFrame':
    """Return the values and solution information from the model as a `pandas` DataFrame. **Requires `pandas`**."""
    from pandas import DataFrame

    df = DataFrame(model.values.T, index=model.span, columns=model.names)
    df['status'] = model.status
    df['iterations'] = model.iterations

    return df
