Skip to content

fix deprecated pandas as_matrix usage - #1035

Open
Navin Prasath (athena0247) wants to merge 1 commit into
microsoft:mainfrom
athena0247:athena0247-patch-1
Open

Navin Prasath (athena0247) wants to merge 1 commit into
microsoft:mainfrom
athena0247:athena0247-patch-1

Conversation

@athena0247

Copy link
Copy Markdown

Replace the deprecated DataFrame.as_matrix() API with DataFrame.to_numpy() to restore compatibility with modern pandas versions.

Replace the deprecated DataFrame.as_matrix() API with DataFrame.to_numpy() to restore compatibility with modern pandas versions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Other lesson-local copies still use deprecated as_matrix() calls.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Replaces deprecated pandas as_matrix() usage in the shared time-series utility.

Changes:

  • Uses to_numpy() for target and tensor conversions.
File summaries
File Summary
7-TimeSeries/common/utils.py Updated two pandas conversions; lesson-local utility copies remain unchanged.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

inputs = {}
y = dataframe['target']
y = y.as_matrix()
y = y.to_numpy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants