Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandas reset_index() #536

Merged
merged 4 commits into from
Oct 22, 2024
Merged

Pandas reset_index() #536

merged 4 commits into from
Oct 22, 2024

Conversation

eyrei123
Copy link
Contributor

Where to put new files:

  • New files should go into a top-level subfolder, named after the article slug. For example: my-awesome-article

How to merge your changes:

  1. Make sure the CI code style tests all pass (+ run the automatic code formatter if necessary).
  2. Find an RP Team member on Slack and ask them to review & approve your PR.
  3. Once the PR has one positive ("approved") review, GitHub lets you merge the PR.
  4. 🎉

@gahjelle gahjelle changed the title Initial Commit Pandas reset_index() Oct 11, 2024
@gahjelle
Copy link
Contributor

Hi @eyrei123

Here's the error I'm getting when I run Black locally:

$ black --version
black, 24.10.0 (compiled: yes)
Python (CPython) 3.12.2

$ black --diff .
--- /home/gahjelle/Dropbox/programmering/realpython/github/materials/dataframe_indexes/Solutions.ipynb	2024-10-11 11:20:37.454582+00:00:cell_23
+++ /home/gahjelle/Dropbox/programmering/realpython/github/materials/dataframe_indexes/Solutions.ipynb	2024-10-11 11:21:12.262322+00:00:cell_23
@@ -1,6 +1,7 @@
 def calculate_user_ID(row):
     return f"{row["last_name"]}{row["first_name"][0]}"
+
 
 beach_boys.index = beach_boys.apply(calculate_user_ID, axis=1)
 
 beach_boys
would reformat /home/gahjelle/Dropbox/programmering/realpython/github/materials/dataframe_indexes/Solutions.ipynb

All done! ✨ 🍰 ✨
1 file would be reformatted, 1 file would be left unchanged.

@brendaweles brendaweles merged commit eb61cad into master Oct 22, 2024
1 check passed
@brendaweles brendaweles deleted the dataframe_indexes branch October 22, 2024 16:37
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.

3 participants