Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a migration guide for Pandas users moving to Kotlin DataFrame and tidies up navigation and formatting.
- Introduces a new “Migrating from Pandas” guide
- Cleans up a formatting quirk in the Quickstart guide
- Updates the documentation tree to include the new guide
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/StardustDocs/topics/guides/quickstart.md | Merged two bullet lines into a single paragraph and added spacing |
| docs/StardustDocs/topics/guides/migratingFromPandas.md | Added the full migration guide from Pandas to Kotlin DataFrame |
| docs/StardustDocs/d.tree | Inserted the new guide into the site’s table of contents |
Comments suppressed due to low confidence (2)
docs/StardustDocs/topics/guides/migratingFromPandas.md:214
- [nitpick] Wrap technical terms and function names such as
advanced time indexingandresample()in backticks for inline code formatting to improve readability.
- Some Pandas features (like advanced time indexing, resample()) aren’t available yet.
docs/StardustDocs/topics/guides/migratingFromPandas.md:1
- [nitpick] Consider renaming the file to use kebab-case (e.g.,
migrating-from-pandas.md) to match the naming convention of other guide files.
# Migration Guide: Pandas to Kotlin DataFrame
| We recommend [starting with **Kotlin Notebook**](gettingStartedKotlinNotebook.md) for the best beginner experience — | ||
| everything works out of the box, | ||
| including interactivity and rich DataFrame and plots rendering. | ||
| everything works out of the box, including interactivity and rich DataFrame and plots rendering. |
There was a problem hiding this comment.
Remove the trailing whitespace at the end of this line to avoid unintended formatting or layout issues.
Suggested change
| everything works out of the box, including interactivity and rich DataFrame and plots rendering. | |
| everything works out of the box, including interactivity and rich DataFrame and plots rendering. |
Collaborator
|
@zaleslaw may be use tabs instead of subsequent paragraphs (like polars docs do)? Instead of ### Pandas (Matplotlib)
```python
df["profit"] = df.revenue - df.cost
pivot = df.pivot_table(values="profit", index="product", columns="year")
```
### Kotlin DataFrame (Kandy)
```kotlin
val pivot = df
.add("profit") { revenue - cost }
.pivot(product, year) { mean(profit) }
```add tabs: <tabs>
<tab title="Pandas (Matplotlib)">
```python
df["profit"] = df.revenue - df.cost
pivot = df.pivot_table(values="profit", index="product", columns="year")
```
</tab>
<tab title="Kotlin DataFrame (Kandy)">
```kotlin
val pivot = df
.add("profit") { revenue - cost }
.pivot(product, year) { mean(profit) }
```
</tab>
</tabs>in all such places. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's a draft, should be shipped with the validated Pandas / Kotlin DataFrame code